Bug #48847 | bin logging does not quote column names or removes quotes | ||
---|---|---|---|
Submitted: | 17 Nov 2009 18:59 | Modified: | 6 Jan 2010 23:04 |
Reporter: | Matthias Leich | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.1,mysql-6.0-codebase-bugfixing | OS: | Any |
Assigned to: | Luis Soares | CPU Architecture: | Any |
[17 Nov 2009 18:59]
Matthias Leich
[17 Dec 2009 21:44]
Tim Chambers
Bug also present on 5.1.41-log. Master server (5.1.41-log) replicates to slave server (5.1.39-log). Bug does not appear to be present with (5.1.39-log) master server.
[6 Jan 2010 23:04]
Luis Soares
This is a duplicate of BUG#49479. I have run the test provided by Matthias in the original report. I named the test file: rpl_backticks.test . The run I did was based on: tree : mysql-5.1-bugteam revid: dao-gang.qu@sun.com-20091231040419-i5dnn06ahs256qcy timestamp: Thu 2009-12-31 12:04:19 +0800 compiled: ./BUILD/compile-pentium64-debug-max Without the patch for BUG#49479: $ ./mtr --mysqld=--binlog-format=statement rpl_backticks.test [...] rpl.rpl_backticks [ fail ] [...] Last_SQL_Error Error 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal)' at line 1' on query. Default database: 'test'. Query: 'LOAD DATA INFILE '../../tmp/SQL_LOAD-2-1-1.data' REPLACE INTO TABLE `t1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (decimal)' [...] Same tree patched with patch for BUG#49479: worker[1] Using MTR_BUILD_THREAD 305, with reserved ports 13050..13059 stop slave; drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; reset master; reset slave; drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; start slave; DROP TABLE IF exists t1; CREATE TABLE t1 AS SELECT CAST(10.0 AS DECIMAL(3)) AS `decimal` ; SELECT * FROM t1 INTO OUTFILE '<outfile>' ; DELETE FROM t1; LOAD DATA INFILE '<outfile>' REPLACE INTO TABLE t1 ; SELECT * FROM t1; decimal 10 DROP TABLE t1; rpl.rpl_backticks [ pass ] 73 ------------------------------------------------------------ The servers were restarted 0 times Spent 0.073 of 5 seconds executing testcases All 1 tests were successful.