1
0
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:
Igor Babaev
2016-09-13 11:58:35 -07:00
parent 54b81ac57f
commit 08ba474174
3 changed files with 22 additions and 1 deletions

View File

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