mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
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.
This commit is contained in:
@ -1544,7 +1544,6 @@ SELECT @@GLOBAL.role;
|
||||
--echo #
|
||||
|
||||
create table t1 (a int);
|
||||
--error ER_WRONG_USAGE
|
||||
(select * from t1) for update;
|
||||
--error ER_WRONG_USAGE
|
||||
(select * from t1) union (select * from t1) for update;
|
||||
|
Reference in New Issue
Block a user