[MDEV-25400] Error message including Unicode changed on MariaDB 10.5 Created: 2021-04-13 Updated: 2021-05-07 Resolved: 2021-04-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 10.5.9 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Jun Aruga | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
|
||
| Description |
|
On the MariaDB 10.5, call the function mysql_send_query with the query "\345\306}\037" to test the error message from the MariaDB server.
and call the function mysql_read_query_result.
And the result is here.
On the MariaDB 10.5 The error message is
But on MariaDB <= 10.4 the error message is
On MariaDB 10.5,
vs On MariaDB <= 10.4,
Did you change something on MariaDB about the error message? Is it a specification or bug? Here is the context. We found the issue on MariaDB Ruby binding. Thank you. |
| Comments |
| Comment by Jun Aruga [ 2021-04-14 ] | ||||||||||||||||||||||||||||||
|
I compared the result of character sets between the MariaDB servers. Updated: I removed the comparison by the mysql client command's status. It is not really related to this issue. I call the case showing
as "Double backslash case", as it's hard to write the actual code on the JIRA ticket, as it was converted on JIRA. And I call the case showing
as "Backslash u case". The result is what I got by the MariaDB C API and by a SQL SELECT SCHEMA_NAME, DEFAULT_CHARACTER_SET_NAME, DEFAULT_COLLATION_NAME FROM information_schema.SCHEMATA. Double backslash caseFedora 35 MariaDB 10.5.9 RPM package + mariadb-connector-c: 3.1.12 RPM packageAs I reported, it happens on the Fedora 35 MariaDB 10.5.9 RPM package + mariadb-connector-c: 3.1.12 RPM package. Here is the result.
MacOSX 10.15.7, MariaDB 10.5.9, Brew packageAs I reported, it happens on the MacOSX 10.15.7, MariaDB 10.5.9, Brew package. Here is the result
MariaDB 10.5 official container image (Ubuntu focal) mariadb:10.5-focalI noticed this issue also happens on the MariaDB 10.5 on Ubuntu by using MariaDB official container's mariadb:10.5-focal image. : https://hub.docker.com/_/mariadb . I misunderstand it was the "backslash u" case previously.
Backslash u caseFedora 33 MariaDB 10.4.18 RPM package + mariadb-connector-c: 3.1.12 RPM packageIt happens on the MariaDB 10.4.18 on Fedora 34. Here is the result.
I assume this issue happens on MariaDB 10.5, and does not happen on MariaDB 10.4. | ||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2021-04-19 ] | ||||||||||||||||||||||||||||||
|
yes, intentional. Note that \u001F in gdb output is one character, your \037. That is, before 10.5 error messages included unreadable control characters verbatim into the error message. In 10.5 they're encoded to keep the error message readable. This was | ||||||||||||||||||||||||||||||
| Comment by Jun Aruga [ 2021-05-07 ] | ||||||||||||||||||||||||||||||
|
Okay. Thanks for the answer! |