1
# drop table t1 t2 t3 are included int master-slave.inc
2
# meaningful only in statement-based:
4
-- source include/have_binlog_format_mixed_or_statement.inc
5
-- source include/master-slave.inc
8
create table t2 (n int, PRIMARY KEY(n));
9
create temporary table t1 (n int);
10
create temporary table t3 (n int not null);
12
insert into t1 values(1),(2),(3),(100),(25),(26),(200),(300);
13
insert into t2 select * from t1;
14
alter table t3 add primary key(n);
17
insert into t3 values (1010);
18
insert into t2 select * from t3;
20
drop table if exists t3;
21
insert into t2 values (1012);
24
create temporary table t1 (n int);
25
insert into t1 values (4),(5);
26
insert into t2 select * from t1;
32
#add 1 to the saved position, so we will catch drop table on disconnect
37
insert into t2 values(61);
43
#same trick - make sure we catch drop of temporary table on disconnect
47
select count(*) from t2;
48
select sum(n) from t2;
49
show status like 'Slave_open_temp_tables';
54
connect (master2,localhost,root,,);
56
drop table if exists t1,t2;