mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
BUG
correct bug with empty table
This commit is contained in:
parent
a2e9bbf2eb
commit
f96200fd1d
1 changed files with 5 additions and 0 deletions
|
@ -1582,6 +1582,8 @@ void Item_func_group_concat::reset()
|
||||||
|
|
||||||
bool Item_func_group_concat::add()
|
bool Item_func_group_concat::add()
|
||||||
{
|
{
|
||||||
|
if (always_null)
|
||||||
|
return 0;
|
||||||
copy_fields(tmp_table_param);
|
copy_fields(tmp_table_param);
|
||||||
copy_funcs(tmp_table_param->items_to_copy);
|
copy_funcs(tmp_table_param->items_to_copy);
|
||||||
|
|
||||||
|
@ -1676,6 +1678,7 @@ bool Item_func_group_concat::setup(THD *thd)
|
||||||
/*
|
/*
|
||||||
all not constant fields are push to list and create temp table
|
all not constant fields are push to list and create temp table
|
||||||
*/
|
*/
|
||||||
|
always_null= 0;
|
||||||
for (uint i= 0; i < arg_count; i++)
|
for (uint i= 0; i < arg_count; i++)
|
||||||
{
|
{
|
||||||
Item *item= args[i];
|
Item *item= args[i];
|
||||||
|
@ -1688,6 +1691,8 @@ bool Item_func_group_concat::setup(THD *thd)
|
||||||
always_null= 1;
|
always_null= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (always_null)
|
||||||
|
return 0;
|
||||||
|
|
||||||
List<Item> all_fields(list);
|
List<Item> all_fields(list);
|
||||||
if (arg_count_order)
|
if (arg_count_order)
|
||||||
|
|
Loading…
Add table
Reference in a new issue