Fixed a failure with cte_recursive.test:

Do not push conditions into recursive with tables.
This commit is contained in:
Igor Babaev 2016-09-01 23:44:42 -07:00
parent 4de75afb45
commit 102fc62990

View file

@ -1129,6 +1129,11 @@ bool pushdown_cond_for_derived(THD *thd, Item *cond, TABLE_LIST *derived)
{
if (!cond)
return false;
/* Do not push conditions into recursive with tables */
if (derived->is_recursive_with_table())
return false;
/*
Build the most restrictive condition extractable from 'cond'
that can be pushed into the derived table 'derived'.