drop_temp_table.test 727 Bytes
Newer Older
1 2 3 4 5 6
connect (con1,localhost,root,,);
connect (con2,localhost,root,,);
connection con1;
reset master;
create database `drop-temp+table-test`;
use `drop-temp+table-test`;
7
create temporary table shortn1 (a int);
8
create temporary table `table:name` (a int);
9
create temporary table shortn2 (a int);
10
select get_lock("a",10);
11
disconnect con1;
12

13
connection con2;
14 15 16 17
# We want to SHOW BINLOG EVENTS, to know what was logged. But there is no
# guarantee that logging of the terminated con1 has been done yet.
# To be sure that logging has been done, we use a user lock.
select get_lock("a",10);
18 19
let $VERSION=`select version()`;
--replace_result $VERSION VERSION
20
--replace_column 2 # 5 #
21 22
show binlog events;
drop database `drop-temp+table-test`;