1
DROP DATABASE IF EXISTS `drop-temp+table-test`;
3
CREATE DATABASE `drop-temp+table-test`;
4
USE `drop-temp+table-test`;
5
CREATE TEMPORARY TABLE shortn1 (a INT);
6
CREATE TEMPORARY TABLE `table:name` (a INT);
7
CREATE TEMPORARY TABLE shortn2 (a INT);
8
CREATE TEMPORARY TABLE tmp(c1 int);
9
CREATE TEMPORARY TABLE tmp1(c1 int);
10
CREATE TEMPORARY TABLE tmp2(c1 int);
11
CREATE TEMPORARY TABLE tmp3(c1 int);
12
CREATE TABLE t(c1 int);
13
DROP TEMPORARY TABLE IF EXISTS tmp;
14
DROP TEMPORARY TABLE IF EXISTS tmp;
15
DROP TEMPORARY TABLE IF EXISTS tmp, tmp1;
16
DROP TEMPORARY TABLE tmp3;
17
DROP TABLE IF EXISTS tmp2, t;
18
DROP TABLE IF EXISTS tmp2, t;
19
SELECT GET_LOCK("a",10);
23
SELECT GET_LOCK("a",10);
26
show binlog events from <binlog_start>;
27
Log_name Pos Event_type Server_id End_log_pos Info
28
master-bin.000001 # Query # # CREATE DATABASE `drop-temp+table-test`
29
master-bin.000001 # Query # # use `drop-temp+table-test`; CREATE TABLE t(c1 int)
30
master-bin.000001 # Query # # use `drop-temp+table-test`; DROP TABLE IF EXISTS `t` /* generated by server */
31
master-bin.000001 # Query # # use `drop-temp+table-test`; DROP TABLE IF EXISTS tmp2, t
32
DROP DATABASE `drop-temp+table-test`;