diff options
author | unknown <kent@kent-amd64.(none)> | 2006-12-31 01:04:59 +0100 |
---|---|---|
committer | unknown <kent@kent-amd64.(none)> | 2006-12-31 01:04:59 +0100 |
commit | 002d7efa478878565805810dda4bb37bd5dcd32e (patch) | |
tree | b030e2a97457bcce43d57b586e30ec006bca32d5 /mysql-test/t/ndb_subquery.test | |
parent | 3099886cda04701283645d1c59d04c7b2e66966c (diff) | |
parent | 0968cc9dec13ddc3352eeff73aa8ebb3eecb0213 (diff) | |
download | mariadb-git-002d7efa478878565805810dda4bb37bd5dcd32e.tar.gz |
Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.1
into mysql.com:/home/kent/bk/main/mysql-5.1
sql/ha_ndbcluster_binlog.cc:
Auto merged
sql/sql_plugin.cc:
Auto merged
storage/ndb/include/kernel/signaldata/Extent.hpp:
Auto merged
storage/ndb/src/kernel/blocks/dbtup/DbtupDiskAlloc.cpp:
Auto merged
storage/ndb/src/kernel/blocks/diskpage.hpp:
Auto merged
storage/ndb/src/kernel/blocks/lgman.cpp:
Auto merged
storage/ndb/src/kernel/blocks/print_file.cpp:
Auto merged
storage/ndb/src/kernel/blocks/tsman.cpp:
Auto merged
storage/ndb/src/kernel/blocks/tsman.hpp:
Auto merged
storage/ndb/ndbapi-examples/mgmapi_logevent2/mgmapi_logevent2.cpp:
Auto merged
Diffstat (limited to 'mysql-test/t/ndb_subquery.test')
-rw-r--r-- | mysql-test/t/ndb_subquery.test | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/mysql-test/t/ndb_subquery.test b/mysql-test/t/ndb_subquery.test index 9cf6527dd98..6282c31c922 100644 --- a/mysql-test/t/ndb_subquery.test +++ b/mysql-test/t/ndb_subquery.test @@ -2,8 +2,7 @@ -- source include/not_embedded.inc --disable_warnings -drop table if exists t1; -drop table if exists t2; +drop table if exists t1, t2, t3, t4; --enable_warnings ########## @@ -14,8 +13,13 @@ unique (u), key(o)) engine=ndb; create table t2 (p int not null primary key, u int not null, o int not null, unique (u), key(o)) engine=ndb; +create table t3 (a int not null primary key, b int not null) engine=ndb; +create table t4 (c int not null primary key, d int not null) engine=ndb; + insert into t1 values (1,1,1),(2,2,2),(3,3,3); insert into t2 values (1,1,1),(2,2,2),(3,3,3), (4,4,4), (5,5,5); +insert into t3 values (1,10), (2,10), (3,30), (4, 30); +insert into t4 values (1,10), (2,10), (3,30), (4, 30); # Use pk --replace_column 9 # @@ -63,7 +67,13 @@ where t1.u = t2.u select * from t2 order by 1; -drop table t1; -drop table t2; +select * from t3 where a = any (select c from t4 where c = 1) order by a; +select * from t3 where a in (select c from t4 where c = 1) order by a; +select * from t3 where a <> some (select c from t4 where c = 1) order by a; +select * from t3 where a > all (select c from t4 where c = 1) order by a; +select * from t3 where row(1,10) = (select c,d from t4 where c = 1) order by a; +select * from t3 where exists (select * from t4 where c = 1) order by a; +drop table if exists t1, t2, t3, t4; +--echo End of 5.1 tests |