Skip to content

Commit 55eb6fa

Browse files
committed
Another attempt to fix bug mdev-10785 + cleanup for the previous attempt.
1 parent c22d307 commit 55eb6fa

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

sql/sql_derived.cc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,18 +1242,11 @@ bool pushdown_cond_for_derived(THD *thd, Item *cond, TABLE_LIST *derived)
12421242
(uchar*) sl);
12431243
if (!extracted_cond_copy)
12441244
continue;
1245-
/*
1246-
Create the conjunction of the existing having condition of sl
1247-
and the pushed condition, take it as the new having condition of sl
1248-
and fix this new condition
1249-
*/
1245+
12501246
extracted_cond_copy->walk(&Item::cleanup_processor, 0, 0);
12511247
sl->cond_pushed_into_having= extracted_cond_copy;
12521248
}
12531249
thd->lex->current_select= save_curr_select;
12541250
return false;
1255-
err:
1256-
thd->lex->current_select= save_curr_select;
1257-
return true;
12581251
}
12591252

sql/sql_lex.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4923,6 +4923,7 @@ void binlog_unsafe_map_init()
49234923

49244924
void st_select_lex::collect_grouping_fields(THD *thd)
49254925
{
4926+
grouping_tmp_fields.empty();
49264927
List_iterator<Item> li(join->fields_list);
49274928
Item *item= li++;
49284929
for (uint i= 0; i < master_unit()->derived->table->s->fields; i++, (item=li++))

0 commit comments

Comments
 (0)