diff options
author | Alexander Barkov <bar@mariadb.com> | 2021-10-22 18:41:35 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2021-10-27 06:09:57 +0400 |
commit | e97b785d764f85009412947600195001be01a706 (patch) | |
tree | 6ef5ec6254429167b78f7d4af2314e15630c6343 /mysql-test/main/plugin.result | |
parent | f9b856b0525dd9d82a9b42be690a26a295c73c64 (diff) | |
download | mariadb-git-e97b785d764f85009412947600195001be01a706.tar.gz |
MDEV-22380: Assertion `name.length == strlen(name.str)' failed ...bb-10.3-bar-MDEV-22380
Also fixes:
MDEV-25399 Assertion `name.length == strlen(name.str)' failed in Item_func_sp::make_send_field
Also fixes a problem that in this scenario:
SET NAMES binary;
SELECT 'some not well-formed utf8 string';
the auto-generated column name copied the binary string value directly
to the Item name, without checking utf8 well-formedness.
After this change auto-generated column names work as follows:
- Zero bytes 0x00 are copied to the name using HEX notation
- In case of "SET NAMES binary", all bytes sequences that do not make
well-formed utf8 characters are copied to the name using HEX notation.
Diffstat (limited to 'mysql-test/main/plugin.result')
-rw-r--r-- | mysql-test/main/plugin.result | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/main/plugin.result b/mysql-test/main/plugin.result index 04931001901..a4fb475981c 100644 --- a/mysql-test/main/plugin.result +++ b/mysql-test/main/plugin.result @@ -320,7 +320,7 @@ select plugin_name from information_schema.plugins where plugin_library like 'ha plugin_name set names utf8; select convert('admin𝌆' using utf8); -convert('admin𝌆' using utf8) +convert('admin\xF0\x9D\x8C\x86' using utf8) admin???? Warnings: Warning 1300 Invalid utf8 character string: '\xF0\x9D\x8C\x86' |