diff options
author | unknown <bell@sanja.is.com.ua> | 2004-01-17 13:09:41 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-01-17 13:09:41 +0200 |
commit | 19fe657f4edf5e7f08a91e2c8e20a194ca4f204b (patch) | |
tree | 7dc48ceb37923054ce8ee9aee99f140c2799a7e1 /mysql-test/t/subselect_innodb.test | |
parent | b21d8b0eff5b2da2f4b565ab630549ede52ed28a (diff) | |
download | mariadb-git-19fe657f4edf5e7f08a91e2c8e20a194ca4f204b.tar.gz |
commit of forgoten test
Diffstat (limited to 'mysql-test/t/subselect_innodb.test')
-rw-r--r-- | mysql-test/t/subselect_innodb.test | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/mysql-test/t/subselect_innodb.test b/mysql-test/t/subselect_innodb.test index 9eb35ffc0fd..e1f26776134 100644 --- a/mysql-test/t/subselect_innodb.test +++ b/mysql-test/t/subselect_innodb.test @@ -67,4 +67,15 @@ INSERT INTO t1 VALUES (1),(2),(3); INSERT INTO t3 VALUES (1,1),(2,2),(3,3); INSERT INTO t2 VALUES (1,1),(2,2),(3,3); SELECT distinct p1.processor_id, (SELECT y.yod_id FROM t1 p2, t2 y WHERE p2.processor_id = p1.processor_id and p2.processor_id = y.processor_id) FROM t1 p1; -drop table t1,t2,t3;
\ No newline at end of file +drop table t1,t2,t3; + +# +# reiniting innodb tables +# +create table t1 (id int not null, value char(255), primary key(id)) engine=innodb; +create table t2 (id int not null, value char(255)) engine=innodb; +insert into t1 values (1,'a'),(2,'b'); +insert into t2 values (1,'z'),(2,'x'); +select t2.id,t2.value,(select t1.value from t1 where t1.id=t2.id) from t2; +select t2.id,t2.value,(select t1.value from t1 where t1.id=t2.id) from t2; +drop table t1,t2; |