added missing auxiliary files for testing of issue 1315130

This commit is contained in:
Frank Cizmich
2014-07-06 19:11:54 -03:00
parent 49d3c5d7c7
commit 17b98f3a6d
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
drop database if exists bug_1315130_a;
create database bug_1315130_a;
use bug_1315130_a;
create table parent_table (a int unsigned primary key);
create table child_table_in_same_schema (a int unsigned primary key, constraint a_fk foreign key a_fk (a) references parent_table(a));
drop database if exists bug_1315130_b;
create database bug_1315130_b;
use bug_1315130_b;
create table child_table_in_second_schema (a int unsigned primary key, constraint a_fk foreign key a_fk (a) references bug_1315130_a.parent_table(a));
create table parent_table (a int unsigned primary key);
create table bug_1315130_a.child_table_in_same_schema_referencing_second_schema (a int unsigned primary key, constraint a_fk2 foreign key a_fk2 (a) references bug_1315130_b.parent_table(a));

View File

@@ -0,0 +1,5 @@
SET FOREIGN_KEY_CHECKS=0;
drop database if exists bug_1315130_a;
drop database if exists bug_1315130_b;
SET FOREIGN_KEY_CHECKS=1;