Browse Source

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.
pull/374/head
Jorgen Loland 16 years ago
parent
commit
bf14598c99
  1. 1
      sql/sql_select.cc

1
sql/sql_select.cc

@ -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))

Loading…
Cancel
Save