From fea0fb2c8b171f19b234c811609854aaf535037f Mon Sep 17 00:00:00 2001 From: "igor@rurik.mysql.com" <> Date: Sun, 31 Jul 2005 02:32:33 -0700 Subject: [PATCH] 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. --- sql/item_sum.cc | 1 + 1 file changed, 1 insertion(+) 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) { /*