mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 11:31:51 +01:00
5a0e20715d
they are ignored to a new test suite "innodb_plugin". Remove a hack in mtr that was deployed to run the builtin InnoDB tests against the InnoDB Plugin. Also detect if a test is an 'innodb plugin test' and if so then transparently replace the builtin InnoDB with the InnoDB Plugin.
9 lines
362 B
Text
9 lines
362 B
Text
SET foreign_key_checks=0;
|
|
CREATE TABLE t1 (id int, foreign key (id) references t2(id)) ENGINE=INNODB;
|
|
CREATE TABLE t2 (id int, foreign key (id) references t1(id)) ENGINE=INNODB;
|
|
SET foreign_key_checks=1;
|
|
SELECT COUNT(*) FROM information_schema.key_column_usage WHERE REFERENCED_TABLE_NAME in ('t1', 't2');
|
|
COUNT(*)
|
|
2
|
|
SET foreign_key_checks=0;
|
|
DROP TABLE t1, t2;
|