~vkolesnikov/pbxt/pbxt-07-diskfull

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/t/rpl_replicate_do.test

  • Committer: paul-mccullagh
  • Date: 2006-10-23 09:14:04 UTC
  • Revision ID: paul-mccullagh-918861e03d351978a9541168a96e58cc826734ee
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This test assumes we are ignoring updates on table t2, but doing
 
2
# updates on t1
 
3
source include/master-slave.inc;
 
4
--disable_warnings
 
5
drop table if exists t11;
 
6
connection slave;
 
7
drop table if exists t11;
 
8
--enable_warnings
 
9
 
 
10
create table t2 (n int);
 
11
insert into t2 values(4);
 
12
connection master;
 
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;
 
21
save_master_pos;
 
22
connection slave;
 
23
sync_with_master;
 
24
select * from t1 ORDER BY m;
 
25
select * from t2;
 
26
--error 1146
 
27
select * from t11;
 
28
connection master;
 
29
drop table if exists t1,t2,t11;
 
30
save_master_pos;
 
31
connection slave;
 
32
sync_with_master;
 
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 # 16 # 22 # 23 # 33 #
 
36
show slave status;
 
37
 
 
38
#
 
39
# BUG#12542
 
40
# TEST: "SET ONE_SHOT should always be executed on slave"
 
41
#
 
42
# We could use any timezone different than server default in this test
 
43
#
 
44
connection master;
 
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';
 
49
select * from t1;
 
50
sync_slave_with_master;
 
51
 
 
52
connection slave;
 
53
set one_shot time_zone='met';
 
54
select * from t1;
 
55
 
 
56
connection master;
 
57
drop table t1;
 
58
sync_slave_with_master;
 
59
 
 
60
# End of 4.1 tests