mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
caching of queries with isammerge tables forbiden using general way
SQL_SELECT_LIMIT as default will be applied only for SELECT statement if there was not explicit LIMIT clause correct table list passed to class constructor of select_update
This commit is contained in:
@ -504,3 +504,15 @@ select 1 union select 2;
|
||||
(select 1) union (select 2) union (select 3) limit 2;
|
||||
set sql_select_limit=default;
|
||||
|
||||
#
|
||||
# ORDER with LIMIT
|
||||
#
|
||||
create table t1 (a int);
|
||||
insert into t1 values (100), (1);
|
||||
create table t2 (a int);
|
||||
insert into t2 values (100);
|
||||
select a from t1 union select a from t2 order by a;
|
||||
SET SQL_SELECT_LIMIT=1;
|
||||
select a from t1 union select a from t2 order by a;
|
||||
drop table t1, t2;
|
||||
set sql_select_limit=default;
|
||||
|
Reference in New Issue
Block a user