1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-9823 LOAD DATA INFILE silently truncates incomplete byte sequences

This commit is contained in:
Alexander Barkov
2016-04-06 09:13:49 +04:00
parent bddd63cfba
commit d516a2ae0c
14 changed files with 207 additions and 31 deletions

View File

@ -0,0 +1,11 @@
# This file has incomplete UJIS sequences {8F}, {8FA1},
# has a valid UJIS sequence {8FA1A1},
# and has no NL at the end:
# {8F} \n xxx1 {8FA1} \n xxx2 {8FA1A1} \n xxx3 \n {8FA1} EOF
<EFBFBD>
xxx1
<EFBFBD><EFBFBD>
xxx2
<EFBFBD><EFBFBD><EFBFBD>
xxx3
<EFBFBD><EFBFBD>

View File

@ -0,0 +1,12 @@
# This file has incomplete utf8mb4 sequences {D0}, {E180}, {F09F98},
# has a valid utf8mb4 sequence {F09F988E}
# and has no NL at the end:
# {D0} \n xxx1 {E180} xxx2 \n {F09F98} \n xxx3 {F09F988E} {F09F98} EOF
<EFBFBD>
xxx1
<EFBFBD><EFBFBD>
xxx2
<EFBFBD><EFBFBD><EFBFBD>
xxx3
😎
<EFBFBD><EFBFBD><EFBFBD>