binlog_stm_drop_tmp_tbl.result 1.02 KB
Newer Older
unknown's avatar
unknown committed
1
drop database if exists `drop-temp+table-test`;
2 3 4
reset master;
create database `drop-temp+table-test`;
use `drop-temp+table-test`;
unknown's avatar
unknown committed
5
create temporary table shortn1 (a int);
6
create temporary table `table:name` (a int);
unknown's avatar
unknown committed
7
create temporary table shortn2 (a int);
8 9 10 11 12 13
select get_lock("a",10);
get_lock("a",10)
1
select get_lock("a",10);
get_lock("a",10)
1
unknown's avatar
unknown committed
14
show binlog events from <binlog_start>;
15
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
unknown's avatar
unknown committed
16 17 18 19 20
master-bin.000001	#	Query	#	#	create database `drop-temp+table-test`
master-bin.000001	#	Query	#	#	use `drop-temp+table-test`; create temporary table shortn1 (a int)
master-bin.000001	#	Query	#	#	use `drop-temp+table-test`; create temporary table `table:name` (a int)
master-bin.000001	#	Query	#	#	use `drop-temp+table-test`; create temporary table shortn2 (a int)
master-bin.000001	#	Query	#	#	use `drop-temp+table-test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `drop-temp+table-test`.`shortn2`,`drop-temp+table-test`.`table:name`,`drop-temp+table-test`.`shortn1`
21
drop database `drop-temp+table-test`;