mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-334: Backport of UNION ALL optimization from mysql-5.7.
Although the original code of mysql-5.7 was adjusted to the current MariaDB code the main ideas of the optimization were preserved.
This commit is contained in:
@ -1056,6 +1056,8 @@ create table t1 (a float);
|
||||
select 10.5 IN (SELECT * from t1 LIMIT 1);
|
||||
ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
|
||||
select 10.5 IN (SELECT * from t1 LIMIT 1 UNION SELECT 1.5);
|
||||
ERROR HY000: Incorrect usage of UNION and LIMIT
|
||||
select 10.5 IN (SELECT * from t1 UNION SELECT 1.5 LIMIT 1);
|
||||
ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
|
||||
drop table t1;
|
||||
create table t1 (a int, b int, c varchar(10));
|
||||
|
Reference in New Issue
Block a user