• Michael Widenius's avatar
    Fixed crashing bug in GROUP_CONCAT with ROLLUP · 9684140f
    Michael Widenius authored
    Fixed MDEV-4002: Server crash or valgrind errors in Item_func_group_concat::setup and Item_func_group_concat::add
    
    mysql-test/r/group_by.result:
      Added test case for failing GROUP_CONCAT ... ROLLUP queries
    mysql-test/t/group_by.test:
      Added test case for failing GROUP_CONCAT ... ROLLUP queries
    sql/item_sum.cc:
      Fixed issue where field->table pointed to different temporary table than expected.
      Ensure that order->next points to the right object (could cause problems with setup_order())
    9684140f
item_sum.cc 90.5 KB