mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixes for offset bug in UNION's and making UNION's obey
SELECT_DEFAULT_LIMIT Docs/manual.texi: Monty forced me to do this
This commit is contained in:
@ -177,4 +177,14 @@ a
|
||||
11
|
||||
12
|
||||
13
|
||||
(select * from t1 limit 2) union (select * from t2 limit 20,3);
|
||||
a
|
||||
1
|
||||
2
|
||||
set SQL_SELECT_LIMIT=2;
|
||||
(select * from t1 limit 2) union (select * from t2 limit 3);
|
||||
a
|
||||
1
|
||||
2
|
||||
set SQL_SELECT_LIMIT=DEFAULT;
|
||||
drop table t1,t2;
|
||||
|
@ -84,4 +84,8 @@ insert into t1 values (1),(2),(3),(4),(5);
|
||||
insert into t2 values (11),(12),(13),(14),(15);
|
||||
(select * from t1 limit 2) union (select * from t2 limit 3) limit 4;
|
||||
(select * from t1 limit 2) union (select * from t2 limit 3);
|
||||
(select * from t1 limit 2) union (select * from t2 limit 20,3);
|
||||
set SQL_SELECT_LIMIT=2;
|
||||
(select * from t1 limit 2) union (select * from t2 limit 3);
|
||||
set SQL_SELECT_LIMIT=DEFAULT;
|
||||
drop table t1,t2;
|
||||
|
Reference in New Issue
Block a user