[MDEV-9823] LOAD DATA INFILE silently truncates incomplete byte sequences Created: 2016-03-29 Updated: 2016-04-06 Resolved: 2016-04-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 10.2.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
If I insert an incomplete multi-byte character into a table:
it correctly returns a warning:
and translates every byte in the incomplete sequence to QUESTION MARK:
If I put the same sequence into a file:
and load it:
it returns no warnings and truncates the incomplete sequence:
LOAD should be fixed to work consistently with INSERT. |