📄 rpl_multi_update4.test
字号:
# Let's verify that multi-update is not always skipped by slave if# some replicate-* rules exist.# (BUG#15699)source include/master-slave.inc;### Clean-upconnection master;--disable_warningsdrop database if exists d1;drop database if exists d2;connection slave;drop database if exists d2;--enable_warnings### Testconnection master;create database d1; # accepted by slavecreate table d1.t0 (id int);create database d2; # ignored by slaveuse d2;create table t1 (id int);create table t2 (id int);insert into t1 values (1), (2), (3), (4), (5);insert into t2 select id + 3 from t1;# a problematic query which must be filter out by slaveupdate t1 join t2 using (id) set t1.id = 0;insert into d1.t0 values (0); # replication workssync_slave_with_master;use d1;#connection slave;select * from t0 where id=0; # must find### Clean-upconnection master;drop database d1;drop database d2;# End of test
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -