mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
innodb.result, innodb.test:
Change tests so that tables are dropped in an order respecting the FOREIGN KEY constraints
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user