[MDEV-6566] Different INSERT behaviour on bad bytes with and without character set conversion Created: 2014-08-12 Updated: 2015-03-16 Resolved: 2015-03-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 5.3.12, 5.5.39, 10.0.13 |
| Fix Version/s: | 10.1.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
If I run this SQL script in a utf8 client:
It displays the following warnings:
with the following results:
Notice, the character '��' is "U+1F601 GRINNING FACE WITH SMILING EYES". It is outside of the BMP range supported by MariaDB character sets "utf8" and "ucs2". The two columns worked differently:
The warnings are also different for the two columns. As "utf8" and "ucs2" are equitable character sets that support exactly the The column "a" exposes a better behaviour: it preserves as much The column "b" should be fixed to work in the same way with "a". The reason of the failure is that the conversion code that is activated The code without conversion should not stop on a bad byte sequence |