1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-18689 Simple query with extra brackets stopped working

Parenthesis around table names and derived tables should be allowed
in FROM clauses and some other context as it was in earlier versions.

Returned test queries that used such parenthesis in 10.3 to their
original form. Adjusted test results accordingly.
This commit is contained in:
Igor Babaev
2019-05-06 11:14:39 -07:00
parent b8259e4b59
commit fd386e39cd
23 changed files with 265 additions and 111 deletions

View File

@ -154,5 +154,27 @@ eval explain format=json $q;
drop table t1;
--echo #
--echo # MDEV-18689: parenthesis around table names and derived tables
--echo #
select * from ( mysql.db );
create table t1 (a int);
insert into t1 values (7), (2), (7);
select * from (t1);
select * from ((t1));
select * from (t1 t) where t.a > 5;
select * from ((t1 t)) where t.a > 5;
select * from ((select a, sum(a) from t1 group by a) t);
select * from (((select a, sum(a) from t1 group by a) t));
update (t1 t) set t.a=t.a+1;
select * from t1;
drop table t1;
--echo # End of 10.4 tests