Bug #20918 | Documentation for LOAD DATA, LINES TERMINATE BY is incorrect | ||
---|---|---|---|
Submitted: | 8 Jul 2006 19:53 | Modified: | 11 Jul 2006 19:54 |
Reporter: | Jerry Krinock | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.0.18 | OS: | MacOS (Mac OS 10.4.7) |
Assigned to: | CPU Architecture: | Any | |
Tags: | Apple, LINES TERMINATED BY, LOAD DATA, Mac OS X |
[8 Jul 2006 19:53]
Jerry Krinock
[8 Jul 2006 20:35]
Paul DuBois
Depending on the transfer method, the line endings could easily have gotten changed to '\n'. The report does not verify that the '\r' line endings were indeed preserved across the transfer operation, so it's unclear if this was indeed the case.
[8 Jul 2006 20:56]
Jerry Krinock
I just confirmed that Paul is correct; the line endings on the server are 0x0a. Apparently, Dreamhost saw that it was a .txt file and translated line endings upon uploading
[8 Jul 2006 21:03]
Paul DuBois
If you use a binary transfer method (for example, "image" mode in ftp), you should find the '\r' line endings preserved and then you'll need LINES TERMINATED BY '\r' as you expected.
[11 Jul 2006 19:54]
Valeriy Kravchuk
Your problem is not the result of a bug in MySQL code. I do not think that any more clarifications are needed in the documentation either.