Fix for a bug involving UNION's and SET SQL_SELECT_LIMIT

This commit is contained in:
Sinisa@sinisa.nasamreza.org 2004-05-03 19:15:26 +03:00
commit 333eadf1b2
3 changed files with 27 additions and 3 deletions

View file

@ -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;