Browse Source
Bug#26711 "Binary content 0x00 sometimes becomes 0x5C 0x00 after dump/load"
Bug#26711 "Binary content 0x00 sometimes becomes 0x5C 0x00 after dump/load"
Problem: "SELECT INTO OUTFILE" created incorrect dumps for BLOBs, so "LOAD DATA" later incorrectly interpreted 0x5C as the second byte of a multi-byte sequence, instead of escape character. Fix: adding escaping of multi-byte heads. mysql-test/r/ctype_big5.result: Adding test case mysql-test/t/ctype_big5.test: Adding test case sql/sql_class.cc: Add escape characters before multi-byte heads. strings/ctype-big5.c: Flagging character set as dangerous for escaping. strings/ctype-gbk.c: Flagging character set as dangerous for escaping. strings/ctype-sjis.c: Flagging character set as dangerous for escaping.pull/374/head
6 changed files with 89 additions and 13 deletions
-
13mysql-test/r/ctype_big5.result
-
18mysql-test/t/ctype_big5.test
-
59sql/sql_class.cc
-
4strings/ctype-big5.c
-
4strings/ctype-gbk.c
-
4strings/ctype-sjis.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue