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.
This commit is contained in:
parent
7048cfde0a
commit
bf14598c99
@ -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…
x
Reference in New Issue
Block a user