2000-12-07 15:54:59 +01:00
|
|
|
source include/master-slave.inc;
|
2000-11-26 07:29:01 +01:00
|
|
|
connection master;
|
2001-01-03 01:15:48 +01:00
|
|
|
drop table if exists t1,t2;
|
|
|
|
|
|
|
|
create table t2 (n int);
|
|
|
|
create temporary table t1 (n int);
|
|
|
|
insert into t1 values(1),(2),(3);
|
|
|
|
insert into t2 select * from t1;
|
2000-11-26 07:29:01 +01:00
|
|
|
connection master1;
|
2001-01-03 01:15:48 +01:00
|
|
|
create temporary table t1 (n int);
|
|
|
|
insert into t1 values (4),(5);
|
|
|
|
insert into t2 select * from t1;
|
2000-11-26 07:29:01 +01:00
|
|
|
disconnect master;
|
|
|
|
connection master1;
|
2001-01-03 01:15:48 +01:00
|
|
|
insert into t2 values(6);
|
2000-11-26 07:29:01 +01:00
|
|
|
disconnect master1;
|
|
|
|
connection slave;
|
|
|
|
sleep 1;
|
2001-01-03 01:15:48 +01:00
|
|
|
@r/rpl000012.result select * from t2;
|
2000-12-07 15:54:59 +01:00
|
|
|
@r/rpl000012.status.result show status like 'Slave_open_temp_tables';
|
2001-01-03 01:15:48 +01:00
|
|
|
#
|
|
|
|
# Clean up
|
|
|
|
#
|
2001-01-04 01:56:38 +01:00
|
|
|
connect (master2,localhost,root,,test,0,mysql-master.sock);
|
2001-01-03 01:15:48 +01:00
|
|
|
connection master2;
|
|
|
|
drop table if exists t1,t2;
|