[Commits] 102fc62990c4b133f9597c61293d93f91759cae2 Fixed a failure with cte_recursive.test: Do not push conditions into recursive with tables.

Igor Babaev igor at askmonty.org
Fri Sep 2 09:44:42 EEST 2016


commit 102fc62990c4b133f9597c61293d93f91759cae2
Author: Igor Babaev <igor at askmonty.org>
Commit: Igor Babaev <igor at askmonty.org>

    Fixed a failure with cte_recursive.test:
    Do not push conditions into recursive with tables.
---
 sql/sql_derived.cc |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc
index 314d598..4d24993 100644
--- a/sql/sql_derived.cc
+++ b/sql/sql_derived.cc
@@ -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'.


More information about the commits mailing list