1
# Let's verify that multi-update is not always skipped by slave if
2
# some replicate-* rules exist.
5
source include/master-slave.inc;
11
drop database if exists d1;
12
drop database if exists d2;
15
drop database if exists d2;
21
create database d1; # accepted by slave
22
create table d1.t0 (id int);
23
create database d2; # ignored by slave
25
create table t1 (id int);
26
create table t2 (id int);
27
insert into t1 values (1), (2), (3), (4), (5);
28
insert into t2 select id + 3 from t1;
29
# a problematic query which must be filter out by slave
30
update t1 join t2 using (id) set t1.id = 0;
31
insert into d1.t0 values (0); # replication works
33
sync_slave_with_master;
36
select * from t0 where id=0; # must find