diff options
author | bell@sanja.is.com.ua <> | 2004-01-17 13:13:48 +0200 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2004-01-17 13:13:48 +0200 |
commit | 242e8dbbbb5d377c33ad639ff93c827fa7a73543 (patch) | |
tree | bd13fb064a3a0fcc08e582e6ffba928760cc73ed /mysql-test/t/subselect_innodb.test | |
parent | c04fd7b17796a2abdc09288c52288636ac10b45f (diff) | |
parent | a5800f8f441164fd2fc67ea45831442bcf7dbb04 (diff) | |
download | mariadb-git-242e8dbbbb5d377c33ad639ff93c827fa7a73543.tar.gz |
merge
Diffstat (limited to 'mysql-test/t/subselect_innodb.test')
-rw-r--r-- | mysql-test/t/subselect_innodb.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/subselect_innodb.test b/mysql-test/t/subselect_innodb.test index affa6301db4..8e8d41f7653 100644 --- a/mysql-test/t/subselect_innodb.test +++ b/mysql-test/t/subselect_innodb.test @@ -90,3 +90,14 @@ CREATE TABLE t2 ( INSERT INTO t2 VALUES (0,0,'GPL'),(1,0,'GPL'),(2,1,'GPL'),(3,2,'GPL'); select (select max(id) from t2 where b=1 group by b) as x,b from t1 where b=1; drop table t1,t2; + +# +# 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; |