Debian Codegraph @

mysql-test/suite/binlog/r/binlog_row_drop_tmp_tbl.result

raw
1 DROP DATABASE IF EXISTS `drop-temp+table-test`;
2 connect con1,localhost,root,,;
3 connect con2,localhost,root,,;
4 connection con1;
5 RESET MASTER;
6 CREATE DATABASE `drop-temp+table-test`;
7 USE `drop-temp+table-test`;
8 CREATE TEMPORARY TABLE shortn1 (a INT);
9 CREATE TEMPORARY TABLE `table:name` (a INT);
10 CREATE TEMPORARY TABLE shortn2 (a INT);
11 CREATE TEMPORARY TABLE tmp(c1 int);
12 CREATE TEMPORARY TABLE tmp1(c1 int);
13 CREATE TEMPORARY TABLE tmp2(c1 int);
14 CREATE TEMPORARY TABLE tmp3(c1 int);
15 CREATE TABLE t(c1 int);
16 DROP TEMPORARY TABLE IF EXISTS tmp;
17 DROP TEMPORARY TABLE IF EXISTS tmp;
18 DROP TEMPORARY TABLE IF EXISTS tmp, tmp1;
19 DROP TEMPORARY TABLE tmp3;
20 DROP TABLE IF EXISTS tmp2, t;
21 DROP TABLE IF EXISTS tmp2, t;
22 SELECT GET_LOCK("a",10);
23 GET_LOCK("a",10)
24 1
25 USE test;
26 disconnect con1;
27 connection con2;
28 SELECT GET_LOCK("a",10);
29 GET_LOCK("a",10)
30 1
31 include/show_binlog_events.inc
32 Log_name Pos Event_type Server_id End_log_pos Info
33 master-bin.000001 # Gtid # # GTID #-#-#
34 master-bin.000001 # Query # # CREATE DATABASE `drop-temp+table-test`
35 master-bin.000001 # Gtid # # GTID #-#-#
36 master-bin.000001 # Query # # use `drop-temp+table-test`; CREATE TABLE t(c1 int)
37 master-bin.000001 # Gtid # # GTID #-#-#
38 master-bin.000001 # Query # # use `drop-temp+table-test`; DROP TABLE IF EXISTS `t` /* generated by server */
39 master-bin.000001 # Gtid # # GTID #-#-#
40 master-bin.000001 # Query # # use `drop-temp+table-test`; DROP TABLE IF EXISTS `tmp2`,`t` /* generated by server */
41 DROP DATABASE `drop-temp+table-test`;
42 RESET MASTER;
43 CREATE TABLE t1 ( i text );
44 connect con1,localhost,root,,;
45 CREATE TEMPORARY TABLE ttmp1 ( i text );
46 SET @@session.binlog_format=ROW;
47 INSERT INTO t1 VALUES ('1');
48 SELECT @@session.binlog_format;
49 @@session.binlog_format
50 ROW
51 disconnect con1;
52 connection default;
53 include/show_binlog_events.inc
54 Log_name Pos Event_type Server_id End_log_pos Info
55 master-bin.000001 # Gtid # # GTID #-#-#
56 master-bin.000001 # Query # # use `test`; CREATE TABLE t1 ( i text )
57 master-bin.000001 # Gtid # # BEGIN GTID #-#-#
58 master-bin.000001 # Annotate_rows # # INSERT INTO t1 VALUES ('1')
59 master-bin.000001 # Table_map # # table_id: # (test.t1)
60 master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
61 master-bin.000001 # Query # # COMMIT
62 RESET MASTER;
63 DROP TABLE t1;
64 #
65 # BUG#28642318: POINT IN TIME RECOVERY USING MYSQLBINLOG BROKEN
66 # WITH TEMPORARY TABLE -> ERRORS
67 # Test case for DELETE query.
68 RESET MASTER;
69 connect con1,localhost,root,,;
70 # Set up.
71 connection default;
72 SET @save_binlog_format= @@session.binlog_format;
73 SET @@session.binlog_format=STATEMENT;
74 CREATE TABLE t1 (a INT) ENGINE=INNODB;
75 connection con1;
76 SET @@session.binlog_format=STATEMENT;
77 CREATE TEMPORARY TABLE t1 (b BLOB) ENGINE=INNODB;
78 connection default;
79 DELETE d1, d2 FROM t1 AS d1, t1 AS d2 WHERE d1.a<>d2.a;
80 connection default;
81 DROP TABLE t1;
82 # DELETE query fails with table re-open error without patch.
83 # Clean up.
84 connection con1;
85 DROP TABLE IF EXISTS t1;
86 connection default;
87 DROP TABLE IF EXISTS t1;
88 RESET MASTER;
89 # Test case for DROP query.
90 connection default;
91 CREATE TABLE t2 (a INT) ENGINE=INNODB;
92 connection con1;
93 CREATE TEMPORARY TABLE t2 (b BLOB) ENGINE=INNODB;
94 connection default;
95 DROP TABLE t2;
96 connection con1;
97 DROP TABLE t2;
98 connection default;
99 # DROP table query fails with unknown table error without patch.
100 # Clean up
101 connection default;
102 SET @@session.binlog_format= @save_binlog_format;
103 RESET MASTER;
104 disconnect con1;