Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5.52, 5.5.53
-
None
Description
Bug MDEV-11343 still exist in 5.5.52 and 5.5.53
Same steps to reproduce
echo "\รค" >/tmp/test.txt
|
Now I try to load this file into a table:
DROP TABLE IF EXISTS t1; |
CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8); |
LOAD DATA INFILE '/tmp/test.txt' INTO TABLE t1 CHARACTER SET utf8; |
It fails with this error:
ERROR 1300 (HY000): Invalid utf8 character string: ''
|
Attachments
Issue Links
- relates to
-
MDEV-11343 LOAD DATA INFILE fails to load data with an escape character followed by a multi-byte character
-
- Closed
-
I'm somewhat afraid of backporting it to 5.5.
The LOAD code has always been very fragile. Fixing one problem often introduced another problem. So in 10.2 we completely rewrote it. Hopefully starting from 10.2 it will work fine.
When we backported an extraction of the 10.2 patch to 10.0/10.1, it was a partial backport only, so some unexpected side effects are possible when the old code fragments are involved. Backporting it to 5.5 makes the things even more dangerous.