summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-01-03 19:35:14 +0200
committerunknown <bell@sanja.is.com.ua>2003-01-03 19:35:14 +0200
commit8aa2e87a78ae5618b7d4e8e8198634fc46f9fd3e (patch)
tree5954cdb49bea53ad0bb04434b959ef94554cd6ba /mysql-test
parent916697f12154284390ec666614b5a8f7584e76cd (diff)
parent2ca6d018d767207c0583fceeccd2a941281e51f2 (diff)
downloadmariadb-git-8aa2e87a78ae5618b7d4e8e8198634fc46f9fd3e.tar.gz
Merge sanja.is.com.ua:/home/bell/mysql/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/work-do-4.1 sql/sql_parse.cc: Auto merged
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/subselect.result11
-rw-r--r--mysql-test/t/subselect.test10
2 files changed, 19 insertions, 2 deletions
diff --git a/mysql-test/r/subselect.result b/mysql-test/r/subselect.result
index 7dc03a31878..38a8e0368c6 100644
--- a/mysql-test/r/subselect.result
+++ b/mysql-test/r/subselect.result
@@ -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
diff --git a/mysql-test/t/subselect.test b/mysql-test/t/subselect.test
index ba9491125a4..de07df1905b 100644
--- a/mysql-test/t/subselect.test
+++ b/mysql-test/t/subselect.test
@@ -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);