mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
Fixed a failure with cte_recursive.test:
Do not push conditions into recursive with tables.
This commit is contained in:
parent
4de75afb45
commit
102fc62990
1 changed files with 5 additions and 0 deletions
|
@ -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'.
|
||||
|
|
Loading…
Reference in a new issue