diff options
author | Igor Babaev <igor@askmonty.org> | 2019-09-20 09:03:38 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2019-09-23 09:57:37 -0700 |
commit | b44171428ab2ea25db82f7cd27349e67812e4921 (patch) | |
tree | 15508ccee1f052305f1fe8b421e9dbf69f8df6e8 /sql/sql_tvc.cc | |
parent | e3da362c037af95a85d3054243a4c9a039ceb4b4 (diff) | |
download | mariadb-git-b44171428ab2ea25db82f7cd27349e67812e4921.tar.gz |
MDEV-19956 Queries with subqueries containing UNION are not parsed
Shift-Reduce conflicts prevented parsing some queries with subqueries that
used set operations when the subqueries occurred in expressions or in IN
predicands.
The grammar rules for query expression were transformed in order to avoid
these conflicts. New grammar rules employ an idea taken from MySQL 8.0.
Diffstat (limited to 'sql/sql_tvc.cc')
-rw-r--r-- | sql/sql_tvc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_tvc.cc b/sql/sql_tvc.cc index bf72a8515f1..e7379a77049 100644 --- a/sql/sql_tvc.cc +++ b/sql/sql_tvc.cc @@ -599,8 +599,8 @@ static bool create_tvc_name(THD *thd, st_select_lex *parent_select, bool table_value_constr::to_be_wrapped_as_with_tail() { - return select_lex->master_unit()->first_select()->next_select() && - select_lex->order_list.elements && select_lex->explicit_limit; + return select_lex->master_unit()->first_select()->next_select() && + select_lex->order_list.elements && select_lex->explicit_limit; } |