summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2018-05-17 22:56:27 -0700
committerIgor Babaev <igor@askmonty.org>2018-05-17 22:58:21 -0700
commitde86997160ea5e02e7fc6eb877d5823e96b64523 (patch)
treed841fc4cad41d13437fbce025151b5b68cdeccd3 /sql/sql_lex.h
parent52c98bf830cc14948f6a950961c77d64d20677a6 (diff)
downloadmariadb-git-de86997160ea5e02e7fc6eb877d5823e96b64523.tar.gz
MDEV-15581 Incorrect result (missing row) with UNION DISTINCT in anchor parts
The current code does not support recursive CTEs whose specifications contain a mix of ALL UNION and DISTINCT UNION operations. This patch catches such specifications and reports errors for them.
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index 68e1885f5e9..4acb1e441c1 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -907,6 +907,7 @@ public:
*/
bool subquery_in_having;
/* TRUE <=> this SELECT is correlated w.r.t. some ancestor select */
+ bool with_all_modifier; /* used for selects in union */
bool is_correlated;
/*
This variable is required to ensure proper work of subqueries and