1
# This test assumes we are ignoring updates on table t2, but doing
3
source include/master-slave.inc;
5
drop table if exists t11;
7
drop table if exists t11;
10
create table t2 (n int);
11
insert into t2 values(4);
13
create table t2 (s char(20));
14
load data infile '../std_data_ln/words.dat' into table t2;
15
insert into t2 values('five');
16
create table t1 (m int);
17
insert into t1 values(15),(16),(17);
18
update t1 set m=20 where m=16;
19
delete from t1 where m=17;
20
create table t11 select * from t1;
24
select * from t1 ORDER BY m;
29
drop table if exists t1,t2,t11;
33
# show slave status, just to see of it prints replicate-do-table
34
--replace_result $MASTER_MYPORT MASTER_PORT
35
--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 # 35 # 36 #
36
query_vertical SHOW SLAVE STATUS;
40
# TEST: "SET ONE_SHOT should always be executed on slave"
42
# We could use any timezone different than server default in this test
45
create table t1 (ts timestamp);
46
set one_shot time_zone='met';
47
insert into t1 values('2005-08-12 00:00:00');
48
set one_shot time_zone='met';
50
sync_slave_with_master;
53
set one_shot time_zone='met';
58
sync_slave_with_master;
63
# Bug#24478 DROP TRIGGER is not caught by replicate-*-table filters
67
create table t1 (a int, b int);
68
create trigger trg1 before insert on t1 for each row set new.b=2;
69
create table t2 (a int, b int);
70
create trigger trg2 before insert on t2 for each row set new.b=2;
73
sync_slave_with_master;
83
sync_slave_with_master;
92
sync_slave_with_master;