summaryrefslogtreecommitdiff
path: root/sql/item_sum.cc
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-07-31 02:32:33 -0700
committerunknown <igor@rurik.mysql.com>2005-07-31 02:32:33 -0700
commit2f47bc19d7149eadf660a876d289491b7dbe93fe (patch)
treeed4668d51843911221e9653d5adfea149d99b48a /sql/item_sum.cc
parent21d2fb6287347659dd6ce5835ddf16cd3be50279 (diff)
downloadmariadb-git-2f47bc19d7149eadf660a876d289491b7dbe93fe.tar.gz
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.
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r--sql/item_sum.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc
index 6ca3f024f61..1ee48dfb763 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -1986,6 +1986,7 @@ bool Item_func_group_concat::setup(THD *thd)
}
count_field_types(tmp_table_param,all_fields,0);
+ tmp_table_param->need_const= 1;
if (table)
{
/*