1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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

backport the new fix from 10.0
This commit is contained in:
Sergei Golubchik
2014-10-03 23:04:25 +02:00
parent 604b653394
commit c0977073e1
2 changed files with 1 additions and 13 deletions

View File

@ -20425,7 +20425,7 @@ find_order_in_list(THD *thd, Item **ref_pointer_array, TABLE_LIST *tables,
order_item->full_name(), thd->where);
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->counter= count;
order->counter_used= 1;