diff options
author | unknown <sasha@asksasha.com> | 2005-08-02 15:15:28 -0600 |
---|---|---|
committer | unknown <sasha@asksasha.com> | 2005-08-02 15:15:28 -0600 |
commit | bbb2bfe1b7386ea7c87e671d06175dc1b1e4c760 (patch) | |
tree | 9872b68460c6435e613cd531229ec404098f8f7a | |
parent | d953bc7a648b57dd138fb558a3de4e3858415275 (diff) | |
download | mariadb-git-bbb2bfe1b7386ea7c87e671d06175dc1b1e4c760.tar.gz |
The earlier commit for BUG#10456 did not add the test file
mysql-test/t/rpl_insert_select.test:
New BitKeeper file ``mysql-test/t/rpl_insert_select.test''
-rw-r--r-- | mysql-test/t/rpl_insert_select.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/t/rpl_insert_select.test b/mysql-test/t/rpl_insert_select.test new file mode 100644 index 00000000000..677be526982 --- /dev/null +++ b/mysql-test/t/rpl_insert_select.test @@ -0,0 +1,19 @@ +# Testcase for BUG#10456 - INSERT INTO ... SELECT violating a primary key +# breaks replication + +-- 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; |