diff options
author | unknown <lars@mysql.com> | 2006-01-25 16:14:27 +0100 |
---|---|---|
committer | unknown <lars@mysql.com> | 2006-01-25 16:14:27 +0100 |
commit | a334c72371c766176ed5579951c4156f5624e3a1 (patch) | |
tree | 41608171335029b2ce3842a65e998ec93ac649b8 /mysql-test/t/rpl_ignore_table.test | |
parent | 03ad365b00c446a6da418cb9112448449f2e5a45 (diff) | |
download | mariadb-git-a334c72371c766176ed5579951c4156f5624e3a1.tar.gz |
BUG#16487: New test for ignored table and multi-update
mysql-test/r/rpl_ignore_table.result:
New result file
mysql-test/t/rpl_ignore_table-slave.opt:
New option file
mysql-test/t/rpl_ignore_table.test:
New test for ignored table and multi-update
Diffstat (limited to 'mysql-test/t/rpl_ignore_table.test')
-rw-r--r-- | mysql-test/t/rpl_ignore_table.test | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mysql-test/t/rpl_ignore_table.test b/mysql-test/t/rpl_ignore_table.test new file mode 100644 index 00000000000..bc651779208 --- /dev/null +++ b/mysql-test/t/rpl_ignore_table.test @@ -0,0 +1,28 @@ +source include/master-slave.inc; + +# +# BUG#16487 +# +# Requirement: +# Multi-updates on ignored tables should not fail even if the slave does +# not have the ignored tables. +# +# Note table t1, t2, and t3 are ignored in the option file to this test. +# + +--echo **** Test case for BUG#16487 **** +--echo **** Master **** +connection master; +CREATE TABLE test.t4 (a int); +CREATE TABLE test.t1 (a int); + +# Expect: The row must *not* by updated on slave, since t1 is ignored +UPDATE test.t4 NATURAL JOIN test.t1 SET t1.a=5; + +--echo **** Slave **** +sync_slave_with_master; +SELECT * FROM t4; + +connection master; +DROP TABLE t1; +DROP TABLE t4; |