Bug #50923 | LOAD DATA INFILE replaces \b with backspace character | ||
---|---|---|---|
Submitted: | 4 Feb 2010 16:32 | Modified: | 5 Feb 2010 17:32 |
Reporter: | Miguel K | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S2 (Serious) |
Version: | 5.1.41 | OS: | Windows |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[4 Feb 2010 16:32]
Miguel K
[4 Feb 2010 17:25]
Valeriy Kravchuk
Our manual (http://dev.mysql.com/doc/refman/5.1/en/load-data.html) clearly describe \b as a special case: "Some two-character sequences that are exceptions, where the first character is the escape character. These sequences are shown in the following table (using “\” for the escape character). The rules for NULL handling are described later in this section. \0 An ASCII NUL (0x00) character \b A backspace character" ... Please, check.
[4 Feb 2010 17:59]
Miguel K
Thanks. Sorry I overlooked it. Maybe we can keep others from being confused by editing this line in the summary further up the page: "Interpret occurrences of tab, newline, or “\” preceded by “\” as literal characters that are part of field values. " This suggested replacement isn't that good, but maybe something like: “\” before tab, newline and some letters will have special meaning By leaving it ambiguous like my new sentence, people will know to keep looking for more info elsewhere. I saw the current text and took the information literally to mean that \b was not a special case. Cheers
[4 Feb 2010 18:16]
Valeriy Kravchuk
OK. Maybe our Documentation team will invent some better text to warn users about other special character sequences starting with \.
[5 Feb 2010 17:32]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products. Updated text: Interpret characters preceded by the escape character "\" as escape sequences. For example, "\t", "\n", and "\\" signify tab, newline, and backslash, respectively. See the discussion of FIELDS ESCAPED BY later for the full list of escape sequences.