Commit 102fc629 authored by Igor Babaev's avatar Igor Babaev

Fixed a failure with cte_recursive.test:

Do not push conditions into recursive with tables.
parent 4de75afb
...@@ -1129,6 +1129,11 @@ bool pushdown_cond_for_derived(THD *thd, Item *cond, TABLE_LIST *derived) ...@@ -1129,6 +1129,11 @@ bool pushdown_cond_for_derived(THD *thd, Item *cond, TABLE_LIST *derived)
{ {
if (!cond) if (!cond)
return false; 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' Build the most restrictive condition extractable from 'cond'
that can be pushed into the derived table 'derived'. that can be pushed into the derived table 'derived'.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment