List:Commits« Previous MessageNext Message »
From:Jorgen Loland Date:October 14 2009 4:20pm
Subject:bzr commit into mysql-5.1-bugteam branch (jorgen.loland:3168) Bug#47280
View as plain text  
#At file:///localhome/jl208045/mysql/mysql-5.1-bugteam-46518/ based on revid:zhenxing.he@stripped

 3168 Jorgen Loland	2009-10-14
      Followup patch for BUG#47280
      
      Temporary tables may set join->group to 0 even though there is 
      grouping. Also need to test if sum_func_count>0 when JOIN::exec() 
      decides whether to present results in a grouped manner.
     @ sql/sql_select.cc
        Temporary tables may set join->group to 0 even though there is 
        grouping. Also need to test if sum_func_count>0 when JOIN::exec() 
        decides whether to present results in a grouped manner.

    modified:
      sql/sql_select.cc
=== modified file 'sql/sql_select.cc'
--- a/sql/sql_select.cc	2009-10-14 08:46:50 +0000
+++ b/sql/sql_select.cc	2009-10-14 16:20:01 +0000
@@ -2036,6 +2036,7 @@ JOIN::exec()
                       *curr_all_fields, 0);
   
   if (curr_join->group || curr_join->implicit_grouping ||
+      curr_join->tmp_table_param.sum_func_count ||
       (procedure && (procedure->flags & PROC_GROUP)))
   {
     if (make_group_fields(this, curr_join))


Attachment: [text/bzr-bundle] bzr/jorgen.loland@sun.com-20091014162001-s9fs95q5qu3a5m3t.bundle
Thread
bzr commit into mysql-5.1-bugteam branch (jorgen.loland:3168) Bug#47280Jorgen Loland14 Oct