summaryrefslogtreecommitdiff
path: root/sql/item_sum.cc
diff options
context:
space:
mode:
authorigor@rurik.mysql.com <>2005-07-31 02:32:33 -0700
committerigor@rurik.mysql.com <>2005-07-31 02:32:33 -0700
commitfea0fb2c8b171f19b234c811609854aaf535037f (patch)
treeed4668d51843911221e9653d5adfea149d99b48a /sql/item_sum.cc
parenta5f2c7528c9d6238bcd80d8616b29fcf582ae6a9 (diff)
downloadmariadb-git-fea0fb2c8b171f19b234c811609854aaf535037f.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)
{
/*