mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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:
@ -924,3 +924,14 @@ a
|
||||
1
|
||||
2
|
||||
2
|
||||
set sql_select_limit=1;
|
||||
select 1 union select 2;
|
||||
1
|
||||
1
|
||||
(select 1) union (select 2);
|
||||
1
|
||||
1
|
||||
(select 1) union (select 2) union (select 3) limit 2;
|
||||
1
|
||||
1
|
||||
2
|
||||
|
Reference in New Issue
Block a user