Commit 34352d0c authored by guilhem@mysql.com's avatar guilhem@mysql.com

Make rpl_insert_id.test use InnoDB, and added foreign keys to the table,

so that it really tests replication of SET FOREIGN_KEY_CHECKS (previously
it used MyISAM).
parent 9e3366c9
...@@ -21,8 +21,8 @@ b c ...@@ -21,8 +21,8 @@ b c
1 4 1 4
drop table t1; drop table t1;
drop table t2; drop table t2;
create table t1(a int auto_increment, key(a)); create table t1(a int auto_increment, key(a)) type=innodb;
create table t2(b int auto_increment, c int, key(b)); create table t2(b int auto_increment, c int, key(b), foreign key(b) references t1(a)) type=innodb;
SET FOREIGN_KEY_CHECKS=0; SET FOREIGN_KEY_CHECKS=0;
insert into t1 values (10); insert into t1 values (10);
insert into t1 values (null),(null),(null); insert into t1 values (null),(null),(null);
......
...@@ -22,8 +22,10 @@ connection master; ...@@ -22,8 +22,10 @@ connection master;
#are replicated the same way #are replicated the same way
drop table t1; drop table t1;
drop table t2; drop table t2;
create table t1(a int auto_increment, key(a)); --disable_warnings
create table t2(b int auto_increment, c int, key(b)); create table t1(a int auto_increment, key(a)) type=innodb;
create table t2(b int auto_increment, c int, key(b), foreign key(b) references t1(a)) type=innodb;
--enable_warnings
SET FOREIGN_KEY_CHECKS=0; SET FOREIGN_KEY_CHECKS=0;
insert into t1 values (10); insert into t1 values (10);
insert into t1 values (null),(null),(null); insert into t1 values (null),(null),(null);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment