[MDEV-8922] Bug#20238729 MySQL sometimes produces no warning when it's unable to interpret a character in a given character set Created: 2015-10-08 Updated: 2022-09-08 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | 5.5, 10.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Sprint: | 5.5.58 | ||||||||
| Description |
|
Merge this patch from MySQL |
| Comments |
| Comment by Alexander Barkov [ 2017-10-13 ] | ||||||||||||||||||||||||||||||
|
This patch adds warnings in some cases where they are questionable (but probably tolerable): Inserting a string literal with bad multi-byte sequences into a BLOB:
The string can be a result of mysql_escape_string(), and it goes to a BLOB. It's not used as a text string.
Inserting a 8-bit string literal with unassigned characters into a BLOB:
As in the example above, the string can be result of mysql_escap_string(), and it goes to a BLOB. It's not used as a text string. Using a 8-bit HEX character string literal with unassigned characters
In this example, the literal IS used as a text (notice the character set introducer). But it should be OK to use unassigned characters in a single character set environment (when the client, the server, and all tables and columns use the same character set). |