Bug #19662 | LOAD DATA INFILE replicates incorrectly | ||
---|---|---|---|
Submitted: | 10 May 2006 4:49 | Modified: | 4 Aug 2006 9:23 |
Reporter: | Kolbe Kegel | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 4.1.19, 4.1.20-BK | OS: | Linux (Linux) |
Assigned to: | MC Brown | CPU Architecture: | Any |
[10 May 2006 4:49]
Kolbe Kegel
[10 May 2006 15:36]
Valeriy Kravchuk
Thank you for a bug report. Verified just as described with 4.0.20-BK on Linux: openxs@suse:~/dbs/4.1> cat /tmp/load_data_infile.txt 1 2 3 . openxs@suse:~/dbs/4.1> bin/mysql -uroot test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 to server version: 4.1.20-debug-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE DATABASE norepl; Query OK, 1 row affected (0.06 sec) mysql> use norepl; CDatabase changed mysql> CREATE TABLE test.table1 (id int); Query OK, 0 rows affected (0.02 sec) mysql> LOAD DATA INFILE '/tmp/load_data_infile.txt' INTO TABLE test.table1; Query OK, 4 rows affected, 1 warning (0.00 sec) Records: 4 Deleted: 0 Skipped: 0 Warnings: 1 mysql> exit Bye openxs@suse:~/dbs/4.1> bin/mysqlbinlog var/suse-bin.000001 /*!40019 SET @@session.max_insert_delayed_threads=0*/; # at 4 #060510 13:44:18 server id 2 log_pos 4 Start: binlog v 3, server v 4.1. 20-debug-log created 060510 13:44:18 at startup # at 79 #060510 13:45:01 server id 2 log_pos 79 Query thread_id=4 exec_time=1 error_code=0 SET TIMESTAMP=1147257901; CREATE DATABASE norepl; # at 138 #060510 13:45:02 server id 2 log_pos 138 Query thread_id=4 exec_time=0 error_code=0 use norepl; SET TIMESTAMP=1147257902; CREATE TABLE test.table1 (id int); # at 208 #060510 13:45:03 server id 2 log_pos 208 Query thread_id=4 exec_time=0 # use test; # LOAD DATA INFILE '/tmp/load_data_infile.txt' INTO TABLE `table1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' STARTING BY '' (id); # file_id: 1 block_len: 8 # at 308 #060510 13:45:03 server id 2 log_pos 308 #Exec_load: file_id=1 #060510 13:45:03 server id 2 log_pos 208 Query thread_id=4 exec_time=0 use test; LOAD DATA LOCAL INFILE '/tmp/load_data_infile.txt-1-0' INTO TABLE `table1` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' STARTING BY '' (id); # file_id: 1 block_len: 8
[4 Aug 2006 9:23]
MC Brown
I've added the following note to the manual for 4.1: <literal>LOAD DATA INFILE</literal> does not replicate correctly when <literal>--binlog-do-db</literal> is used. (Bug #19662)