[MDEV-11343] LOAD DATA INFILE fails to load data with an escape character followed by a multi-byte character Created: 2016-11-24 Updated: 2020-08-25 Resolved: 2016-11-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 10.0.28 |
| Fix Version/s: | 10.0.29 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | upstream | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
I create a file with a backslash followed by a multi-byte utf8 character:
Now I try to load this file into a table:
It fails with this error:
Looks wrong. The expected behaviour is to put the character 'ä' into the table. The problem is NOT repeatable in 5.5. It seems the problem was introduced when we merged this change from MySQL:
|
| Comments |
| Comment by Valerii Kravchuk [ 2016-11-24 ] | ||||||||
|
Affects upstream MySQL See http://bugs.mysql.com/bug.php?id=83950 | ||||||||
| Comment by Alexander Barkov [ 2016-11-29 ] | ||||||||
|
Approved by Sergei. | ||||||||
| Comment by Lennart Schedin [ 2016-12-21 ] | ||||||||
|
I can reproduce this problem on MariaDB 5.5.52 (and 5.5.53):
The problem was probably introduced in MariaDB 5.5.51 with the commit that Alexander Barkov wrote in the ticket description. Would it be possible to backport this fix into 5.5? I understand that part of the fix is specific for MariaDB 10.0 and 10.1. | ||||||||
| Comment by Lennart Schedin [ 2017-03-20 ] | ||||||||
|
I have communicated this to MariaDB on other channels, but I feel it is good the information is public: At 2016-10-28 MySQL reverted the commit that I think caused problems for me in the 5.5 track: https://github.com/mysql/mysql-server/commit/c3cf7f47f0f4a1ec314001aaf0c3d9c1c1f62097 Sergei Golubchik at MariaDB merged the branch mysql/5.5 into 5.5 for MariaDB at 2016-12-22: https://github.com/MariaDB/server/commit/9fefe973360124f281122a129434a36e661168b9 MariaDB release 5.5.54 included this revert. Thus the problem is fixed for me in the 5.5 track. |