2004-01-29 19:22:29 +01:00
|
|
|
source include/master-slave.inc;
|
2006-02-09 15:29:57 +01:00
|
|
|
create table t1 (a int primary key);
|
2004-01-29 19:22:29 +01:00
|
|
|
create table t2 (a int);
|
|
|
|
|
|
|
|
insert into t1 values (1);
|
|
|
|
insert into t2 values (1);
|
|
|
|
|
2006-02-09 15:29:57 +01:00
|
|
|
|
2004-01-29 19:22:29 +01:00
|
|
|
delete t1.* from t1, t2 where t1.a = t2.a;
|
|
|
|
|
|
|
|
save_master_pos;
|
|
|
|
select * from t1;
|
|
|
|
select * from t2;
|
|
|
|
|
|
|
|
connection slave;
|
|
|
|
sync_with_master;
|
|
|
|
select * from t1;
|
|
|
|
select * from t2;
|
|
|
|
|
2005-09-20 17:41:47 +02:00
|
|
|
connection master;
|
|
|
|
drop table t1,t2;
|
2005-12-22 06:39:02 +01:00
|
|
|
save_master_pos;
|
|
|
|
connection slave;
|
|
|
|
sync_with_master;
|
|
|
|
|
|
|
|
# End of 4.1 tests
|