• unknown's avatar
    Fix for bug #9798: Rollup crash with InnoDB in setup_sum_funcs(). · 51e86278
    unknown authored
    
    sql/opt_range.cc:
      Fix for bug #9798: Rollup crash with InnoDB in setup_sum_funcs().
      Disable mix/max group by optimization for queries with rollup for now.
      Note: the actual bug was hidden; if this optimization works with rollup
      queries we will have to change some code:
      
      the problem is that we call the join->make_sum_func_list() function against 
      changed thd->mem_root (see SQL_SELECT::test_quick_select()) which creates some
      items for rollup, then we free that mem_root, then we try to reuse (free) those
      items.
    51e86278
opt_range.cc 263 KB