1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for BUG#1345 "SQL Syntax Error in binarylog with DROP TABLES":

it's just backquoting the db's and table's names
when writing DROP TEMPORARY TABLE to the binlog when a connection ends.
A testcase for this.
This commit is contained in:
guilhem@mysql.com
2003-09-28 18:31:49 +02:00
parent 4a7b5b26e2
commit 9d7014c07b
3 changed files with 30 additions and 8 deletions

View File

@ -0,0 +1,11 @@
reset master;
create database `drop-temp+table-test`;
use `drop-temp+table-test`;
create temporary table `table:name` (a int);
show binlog events;
Log_name Pos Event_type Server_id Orig_log_pos Info
master-bin.001 4 Start 1 4 Server ver: VERSION, Binlog ver: 3
master-bin.001 79 Query 1 79 use test; create database `drop-temp+table-test`
master-bin.001 152 Query 1 152 use drop-temp+table-test; create temporary table `table:name` (a int)
master-bin.001 246 Query 1 246 use drop-temp+table-test; DROP /*!40005 TEMPORARY */ TABLE `drop-temp+table-test`.`table:name`
drop database `drop-temp+table-test`;

View File

@ -0,0 +1,13 @@
connect (con1,localhost,root,,);
connect (con2,localhost,root,,);
connection con1;
reset master;
create database `drop-temp+table-test`;
use `drop-temp+table-test`;
create temporary table `table:name` (a int);
disconnect con1;
connection con2;
let $VERSION=`select version()`;
--replace_result $VERSION VERSION
show binlog events;
drop database `drop-temp+table-test`;