2003-09-28 18:31:49 +02:00
reset master;
create database `drop-temp+table-test`;
use `drop-temp+table-test`;
2005-02-04 22:43:54 +01:00
create temporary table shortn1 (a int);
2003-09-28 18:31:49 +02:00
create temporary table `table:name` (a int);
2005-02-04 22:43:54 +01:00
create temporary table shortn2 (a int);
2003-09-29 22:56:31 +02:00
select get_lock("a",10);
get_lock("a",10)
1
select get_lock("a",10);
get_lock("a",10)
1
2003-09-28 18:31:49 +02:00
show binlog events;
Log_name Pos Event_type Server_id Orig_log_pos Info
2005-02-04 22:43:54 +01:00
master-bin.000001 # Start 1 # Server ver: VERSION, Binlog ver: 3
master-bin.000001 # Query 1 # create database `drop-temp+table-test`
master-bin.000001 # Query 1 # use `drop-temp+table-test`; create temporary table shortn1 (a int)
master-bin.000001 # Query 1 # use `drop-temp+table-test`; create temporary table `table:name` (a int)
master-bin.000001 # Query 1 # use `drop-temp+table-test`; create temporary table shortn2 (a int)
2006-05-09 22:01:31 +02:00
master-bin.000001 # Query 1 # use `drop-temp+table-test`; SET ONE_SHOT CHARACTER_SET_CLIENT=33,COLLATION_CONNECTION=8,COLLATION_DATABASE=8,COLLATION_SERVER=8
2005-02-14 23:47:17 +01:00
master-bin.000001 # Query 1 # 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`
2005-02-04 22:43:54 +01:00
master-bin.000001 # Query 1 # use `drop-temp+table-test`; DO RELEASE_LOCK("a")
2003-09-28 18:31:49 +02:00
drop database `drop-temp+table-test`;