• Sergei Golubchik's avatar
    MDEV-7821 Server crashes in Item_func_group_concat::fix_fields on 2nd execution of PS · 96badb16
    Sergei Golubchik authored
    Correct fix for this bug.
    
    The problem was that Item_func_group_concat() was calling
    setup_order(), passing args as the second argument,
    ref_pointer_array. While ref_pointer_array should have free
    space at the end, as setup_order() can append elements to it.
    
    In this particular case args[] elements were overwritten when
    setup_order() was pushing new elements into ref_pointer_array.
    96badb16
item_sum.cc 94 KB