mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.5 into 10.6
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
drop table if exists t1,t2,t3,t4,t5,t6;
|
||||
CREATE TABLE t1 (a int not null, b char (10) not null);
|
||||
insert into t1 values(1,'a'),(2,'b'),(3,'c'),(3,'c');
|
||||
CREATE TABLE t2 (a int not null, b char (10) not null);
|
||||
@ -1536,6 +1535,9 @@ DROP TABLE t1;
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'into @var) union (select 1)' at line 1
|
||||
(select 1) union (select 1 into @var);
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'into @var)' at line 1
|
||||
select @var;
|
||||
@var
|
||||
NULL
|
||||
(select 2) union (select 1 into @var);
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'into @var)' at line 1
|
||||
(select 1) union (select 1) into @var;
|
||||
@ -2764,5 +2766,20 @@ a b c d
|
||||
3 4 2 197
|
||||
drop table t1,t2;
|
||||
#
|
||||
# MDEV-30066 (limit + offset) union all (...) limit = incorrect result
|
||||
#
|
||||
create table t1(id int primary key auto_increment, c1 int);
|
||||
insert into t1(c1) values(1),(2),(3);
|
||||
(select * from t1 where c1>=1 order by c1 desc limit 2,1) union all (select * from t1 where c1>1 order by c1 desc);
|
||||
id c1
|
||||
1 1
|
||||
2 2
|
||||
3 3
|
||||
(select * from t1 where c1>=1 order by c1 desc limit 2,1) union all (select * from t1 where c1>1 order by c1 desc) limit 2;
|
||||
id c1
|
||||
1 1
|
||||
2 2
|
||||
drop table t1;
|
||||
#
|
||||
# End of 10.3 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user