diff options
author | monty@mashka.mysql.fi <> | 2003-02-17 02:14:37 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2003-02-17 02:14:37 +0200 |
commit | 6051b2f9988f1e317be41e49c64718cc610c1260 (patch) | |
tree | 49ba5df63376ec1ba88e54e1446b29a777bba1a9 /mysql-test/r/innodb.result | |
parent | 153cefc61b15e182157ab7da9a14ab014c4f95de (diff) | |
download | mariadb-git-6051b2f9988f1e317be41e49c64718cc610c1260.tar.gz |
Fixed multi-table-delete for InnoDB tables
Novell patches
Diffstat (limited to 'mysql-test/r/innodb.result')
-rw-r--r-- | mysql-test/r/innodb.result | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/innodb.result b/mysql-test/r/innodb.result index 828bd2bab83..2a6eaaf0bfc 100644 --- a/mysql-test/r/innodb.result +++ b/mysql-test/r/innodb.result @@ -1058,3 +1058,13 @@ create table t2 (b varchar(10) not null unique) type=innodb; select t1.a from t1,t2 where t1.a=t2.b; a drop table t1,t2; +CREATE TABLE t1 (id INT NOT NULL, PRIMARY KEY (id)) TYPE=INNODB; +CREATE TABLE t2 (id INT PRIMARY KEY, t1_id INT, INDEX par_ind (t1_id), FOREIGN KEY (t1_id) REFERENCES t1(id) ON DELETE CASCADE ) TYPE=INNODB; +insert into t1 set id=1; +insert into t2 set id=1, t1_id=1; +delete t1,t2 from t1,t2 where t1.id=t2.t1_id; +select * from t1; +id +select * from t2; +id t1_id +drop table t1,t2; |