MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:First_name Last_name Date:January 1 1970 12:00am
Subject:bzr commit into mysql-6.0-bugteam branch (epotemkin:2809) Bug#40884
View as plain text  
#At file:///work/bzr_trees/mysql-6.0-bugteam/ based on revid:aelkin@stripped

 2809 First_name Last_name	2008-12-16 [merge]
      Merged fix for the bug#40884.
modified:
  sql/sql_select.cc

=== modified file 'sql/sql_select.cc'
--- a/sql/sql_select.cc	2008-12-10 15:59:12 +0000
+++ b/sql/sql_select.cc	2008-12-15 23:58:15 +0000
@@ -2452,7 +2452,8 @@ JOIN::exec()
     if (!items1)
     {
       items1= items0 + all_fields.elements;
-      if (sort_and_group || curr_tmp_table->group)
+      if (sort_and_group || curr_tmp_table->group ||
+          tmp_table_param.precomputed_group_by)
       {
 	if (change_to_use_tmp_fields(thd, items1,
 				     tmp_fields_list1, tmp_all_fields1,
@@ -11733,6 +11734,8 @@ create_tmp_table(THD *thd,TMP_TABLE_PARA
   ENGINE_COLUMNDEF *recinfo;
   uint total_uneven_bit_length= 0;
   bool force_copy_fields= param->force_copy_fields;
+  save_sum_fields|= param->precomputed_group_by;
+
   DBUG_ENTER("create_tmp_table");
   DBUG_PRINT("enter",
              ("distinct: %d  save_sum_fields: %d  rows_limit: %lu  group: %d",

Thread
bzr commit into mysql-6.0-bugteam branch (epotemkin:2809) Bug#40884First_name Last_name15 Dec