Commit f1afc003 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-6743 crash in GROUP_CONCAT(IF () ORDER BY 1)

new fix
parent 3416facb
...@@ -21143,7 +21143,7 @@ find_order_in_list(THD *thd, Item **ref_pointer_array, TABLE_LIST *tables, ...@@ -21143,7 +21143,7 @@ find_order_in_list(THD *thd, Item **ref_pointer_array, TABLE_LIST *tables,
order_item->full_name(), thd->where); order_item->full_name(), thd->where);
return TRUE; return TRUE;
} }
order->item= ref_pointer_array + count - 1; thd->change_item_tree((Item**)&order->item, (Item*)(ref_pointer_array + count - 1));
order->in_field_list= 1; order->in_field_list= 1;
order->counter= count; order->counter= count;
order->counter_used= 1; order->counter_used= 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment