| Bug #120391 | CONVERT(... USING utf8mb4) silently replaces unconvertible CJK bytes without warning | ||
|---|---|---|---|
| Submitted: | 2 May 3:57 | Modified: | 4 May 6:54 |
| Reporter: | chen zhongpu | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) |
| Version: | OS: | Any | |
| Assigned to: | CPU Architecture: | Any | |
[2 May 3:57]
chen zhongpu
[4 May 6:54]
Roy Lyseng
Thank you for the bug report. However, I don't think this is actually a bug. The string that converts successfully is a GBK string, whereas the string that causes a warning is a binary string. To prove this, execute: SELECT CONVERT(_gbk x'A140' USING utf8mb4); which will also execute successfully.
