mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
innodb.result, innodb.test:
Change tests so that tables are dropped in an order respecting the FOREIGN KEY constraints mysql-test/t/innodb.test: Change tests so that tables are dropped in an order respecting the FOREIGN KEY constraints mysql-test/r/innodb.result: Change tests so that tables are dropped in an order respecting the FOREIGN KEY constraints
This commit is contained in:
parent
1b8d5ca887
commit
2b9e174499
2 changed files with 4 additions and 4 deletions
|
@ -1004,7 +1004,7 @@ select * from t1;
|
|||
id
|
||||
select * from t2;
|
||||
id t1_id
|
||||
drop table t1,t2;
|
||||
drop table t2,t1;
|
||||
DROP TABLE IF EXISTS 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) ) TYPE=INNODB;
|
||||
|
@ -1245,4 +1245,4 @@ a
|
|||
drop table t1;
|
||||
CREATE TABLE t1 (`id 1` INT NOT NULL, PRIMARY KEY (`id 1`)) TYPE=INNODB;
|
||||
CREATE TABLE t2 (id INT PRIMARY KEY, t1_id INT, INDEX par_ind (t1_id), FOREIGN KEY (`t1_id`) REFERENCES `t1`(`id 1`) ON DELETE CASCADE ) TYPE=INNODB;
|
||||
drop table t1,t2;
|
||||
drop table t2,t1;
|
||||
|
|
|
@ -692,7 +692,7 @@ insert into t2 set id=1, t1_id=1;
|
|||
delete t1,t2 from t1,t2 where t1.id=t2.t1_id;
|
||||
select * from t1;
|
||||
select * from t2;
|
||||
drop table t1,t2;
|
||||
drop table t2,t1;
|
||||
DROP TABLE IF EXISTS 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) ) TYPE=INNODB;
|
||||
|
@ -877,4 +877,4 @@ drop table t1;
|
|||
CREATE TABLE t1 (`id 1` INT NOT NULL, PRIMARY KEY (`id 1`)) TYPE=INNODB;
|
||||
CREATE TABLE t2 (id INT PRIMARY KEY, t1_id INT, INDEX par_ind (t1_id), FOREIGN KEY (`t1_id`) REFERENCES `t1`(`id 1`) ON DELETE CASCADE ) TYPE=INNODB;
|
||||
#show create table t2;
|
||||
drop table t1,t2;
|
||||
drop table t2,t1;
|
||||
|
|
Loading…
Reference in a new issue