rpl_drop_temp.result 1.45 KB
Newer Older
1 2
include/master-slave.inc
[connection master]
3
create database if not exists mysqltest;
4
use mysqltest;
5 6
create temporary table mysqltest.t1 (n int)ENGINE=MyISAM;
create temporary table mysqltest.t2 (n int)ENGINE=MyISAM;
7 8 9
show status like 'Slave_open_temp_tables';
Variable_name	Value
Slave_open_temp_tables	0
unknown's avatar
unknown committed
10
drop database mysqltest;
11 12 13 14 15 16 17 18 19 20 21 22 23 24
DROP TEMPORARY TABLE IF EXISTS tmp1;
Warnings:
Note	1051	Unknown table 'tmp1'
CREATE TEMPORARY TABLE t1 ( a int );
DROP TEMPORARY TABLE t1, t2;
ERROR 42S02: Unknown table 't2'
DROP TEMPORARY TABLE tmp2;
ERROR 42S02: Unknown table 'tmp2'
stop slave;
**** On Master ****
CREATE TEMPORARY TABLE tmp3 (a int);
DROP TEMPORARY TABLE tmp3;
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
START SLAVE;
25
include/rpl_reset.inc
26 27 28 29 30 31 32 33 34
CREATE TABLE t1 ( i INT );
SHOW STATUS LIKE 'Slave_open_temp_tables';
Variable_name	Value
Slave_open_temp_tables	0
CREATE TEMPORARY TABLE ttmp1 ( i INT );
SET SESSION binlog_format=ROW;
SHOW STATUS LIKE 'Slave_open_temp_tables';
Variable_name	Value
Slave_open_temp_tables	0
Sergei Golubchik's avatar
Sergei Golubchik committed
35
include/show_binlog_events.inc
36
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
unknown's avatar
unknown committed
37
master-bin.000001	#	Gtid	#	#	GTID #-#-#
38
master-bin.000001	#	Query	#	#	use `test`; CREATE TABLE t1 ( i INT )
unknown's avatar
unknown committed
39
master-bin.000001	#	Gtid	#	#	GTID #-#-#
40
master-bin.000001	#	Query	#	#	use `test`; CREATE TEMPORARY TABLE ttmp1 ( i INT )
unknown's avatar
unknown committed
41
master-bin.000001	#	Gtid	#	#	GTID #-#-#
42 43
master-bin.000001	#	Query	#	#	use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `ttmp1`
DROP TABLE t1;
44
include/rpl_end.inc