blob: bc9ec9da6366db62c973b076f69a549ccebd2017 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Testcase for BUG#10456 - INSERT INTO ... SELECT violating a primary key
# breaks replication
-- source include/have_binlog_format_mixed_or_row.inc
-- source include/master-slave.inc
connection master;
create table t1 (n int not null primary key);
insert into t1 values (1);
create table t2 (n int);
insert into t2 values (1);
insert ignore into t1 select * from t2;
insert into t1 values (2);
--sync_slave_with_master
connection slave;
select * from t1;
connection master;
drop table t1,t2;
--sync_slave_with_master
--source include/rpl_end.inc
|