mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fix for a bug involving UNION's and SET SQL_SELECT_LIMIT
mysql-test/r/union.result: Results for a test case for bug involving UNION's and SET SQL_SELECT_LIMIT mysql-test/t/union.test: Test case for bug involving UNION's and SET SQL_SELECT_LIMIT sql/sql_union.cc: Patch for a bug involving UNION's and SET SQL_SELECT_LIMIT
This commit is contained in:
@@ -498,4 +498,8 @@ select * from t1 UNION ALL select * from t1;
|
||||
select * from t1 UNION select * from t1 UNION ALL select * from t1;
|
||||
drop table t1;
|
||||
select 1 as a union all select 1 union all select 2 union select 1 union all select 2;
|
||||
set sql_select_limit=1;
|
||||
select 1 union select 2;
|
||||
(select 1) union (select 2);
|
||||
(select 1) union (select 2) union (select 3) limit 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user