mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge remote-tracking branch 'origin/10.6' into 10.11
This commit is contained in:
@@ -11451,6 +11451,19 @@ Item *st_select_lex::pushdown_from_having_into_where(THD *thd, Item *having)
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Remove IMMUTABLE_FL only after all of the elements of the condition are processed.
|
||||
*/
|
||||
it.rewind();
|
||||
while ((item=it++))
|
||||
{
|
||||
if (item->walk(&Item::remove_immutable_flag_processor, 0, STOP_PTR))
|
||||
{
|
||||
attach_to_conds.empty();
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
exit:
|
||||
thd->lex->current_select= save_curr_select;
|
||||
return having;
|
||||
|
||||
Reference in New Issue
Block a user