summaryrefslogtreecommitdiff
path: root/sql/item_sum.cc
diff options
context:
space:
mode:
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 7bd04626bbd..e26b6a75b7c 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -3037,6 +3037,7 @@ bool Item_func_group_concat::setup(THD *thd)
DBUG_RETURN(TRUE);
count_field_types(tmp_table_param,all_fields,0);
+ tmp_table_param->need_const= 1;
DBUG_ASSERT(table == 0);
/*
We have to create a temporary table to get descriptions of fields