Commit bab97119 authored by unknown's avatar unknown

Fixed bug #12095: a join query with GROUP_CONCAT over a single row table.

If GROUP_CONCAT is calculated we always put its argument into a temp
table, even when the argument is a constant item.

parent a89c7087
...@@ -1986,6 +1986,7 @@ bool Item_func_group_concat::setup(THD *thd) ...@@ -1986,6 +1986,7 @@ bool Item_func_group_concat::setup(THD *thd)
} }
count_field_types(tmp_table_param,all_fields,0); count_field_types(tmp_table_param,all_fields,0);
tmp_table_param->need_const= 1;
if (table) if (table)
{ {
/* /*
......
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