mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
fixed do with subselects
This commit is contained in:
@ -841,4 +841,13 @@ ROW(1, 1, 'a') IN (select b,a,c from t where c='b' or c='a')
|
||||
1
|
||||
select ROW(1, 1, 'a') IN (select b,a,c from t limit 2);
|
||||
This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
|
||||
drop table if exists t;
|
||||
drop table t;
|
||||
create table t (a int);
|
||||
insert into t values (1);
|
||||
do @a:=(SELECT a from t);
|
||||
select @a;
|
||||
@a
|
||||
1
|
||||
drop table t;
|
||||
do (SELECT a from t);
|
||||
Table 'test.t' doesn't exist
|
||||
|
@ -462,4 +462,12 @@ select ROW(1, 2, 'a') IN (select a,b,c from t where c='b' or c='a');
|
||||
select ROW(1, 1, 'a') IN (select b,a,c from t where c='b' or c='a');
|
||||
-- error 1235
|
||||
select ROW(1, 1, 'a') IN (select b,a,c from t limit 2);
|
||||
drop table if exists t;
|
||||
drop table t;
|
||||
|
||||
create table t (a int);
|
||||
insert into t values (1);
|
||||
do @a:=(SELECT a from t);
|
||||
select @a;
|
||||
drop table t;
|
||||
-- error 1146
|
||||
do (SELECT a from t);
|
||||
|
Reference in New Issue
Block a user