mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed bug mdev-10783.
Do not push conditions into materialized views/derived tables marked with the flag 'fill_me'.
This commit is contained in:
@ -1144,6 +1144,10 @@ bool pushdown_cond_for_derived(THD *thd, Item *cond, TABLE_LIST *derived)
|
||||
if (!any_select_allows_cond_pushdown)
|
||||
return false;
|
||||
|
||||
/* Do not push conditions into constant derived */
|
||||
if (derived->fill_me)
|
||||
return false;
|
||||
|
||||
/* Do not push conditions into recursive with tables */
|
||||
if (derived->is_recursive_with_table())
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user