~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_insert_select.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

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