mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Fix for a problem with :
CREATE / INSERT ... (SELECT ...) UNION (SELECT ...) LIMIT;
This commit is contained in:
@ -271,9 +271,9 @@ insert into t1 values(1,'a'),(2,'b'),(3,'c'),(3,'c');
|
||||
CREATE TABLE t2 (a int not null, b char (10) not null);
|
||||
insert into t2 values (3,'c'),(4,'d'),(5,'f'),(6,'e');
|
||||
create table t3 select a,b from t1 union select a,b from t2;
|
||||
create table t4 (select a,b from t1) union (select a,b from t2);
|
||||
create table t4 (select a,b from t1) union (select a,b from t2) limit 2;
|
||||
insert into t4 select a,b from t1 union select a,b from t2;
|
||||
insert into t3 (select a,b from t1) union (select a,b from t2);
|
||||
insert into t3 (select a,b from t1) union (select a,b from t2) limit 2;
|
||||
select * from t3;
|
||||
a b
|
||||
1 a
|
||||
@ -284,18 +284,10 @@ a b
|
||||
6 e
|
||||
1 a
|
||||
2 b
|
||||
3 c
|
||||
4 d
|
||||
5 f
|
||||
6 e
|
||||
select * from t4;
|
||||
a b
|
||||
1 a
|
||||
2 b
|
||||
3 c
|
||||
4 d
|
||||
5 f
|
||||
6 e
|
||||
1 a
|
||||
2 b
|
||||
3 c
|
||||
|
Reference in New Issue
Block a user