summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2017-04-20 13:09:31 -0700
committerIgor Babaev <igor@askmonty.org>2017-04-21 09:33:36 -0700
commit54a995cd2206995f6dd675cabdce12a4b7ff7540 (patch)
tree432bee02fb5e533f1216a9c84f1ede1f4a2a87ea /scripts
parent14d124880f432d5d4a29e7ec79b0d2b922ec52ae (diff)
downloadmariadb-git-54a995cd2206995f6dd675cabdce12a4b7ff7540.tar.gz
Fixed the bug mdev-12519.
This patch fixed some problems that occurred with subqueries that contained directly or indirectly recursive references to recursive CTEs. 1. A [NOT] IN predicate with a constant left operand and a non-correlated subquery as the right operand used in the specification of a recursive CTE was considered as a constant predicate and was evaluated only once. Now such a predicate is re-evaluated after every iteration of the process that produces the records of the recursive CTE. 2. The Exists-To-IN transformation could be applied to [NOT] IN predicates with recursive references. This opened a possibility of materialization for the subqueries used as right operands. Yet, materialization is prohibited for the subqueries if they contain a recursive reference. Now the Exists-To-IN transformation cannot be applied for subquery predicates with recursive references. The function st_select_lex::check_subqueries_with_recursive_references() is called now only for the first execution of the SELECT.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions