1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-35614: JSON_UNQUOTE doesn't work with emojis

emojis are a 4 byte utf sequence. Fix the conversion in JSON_UNQUOTE
to utf8mb4_bin by default.
This commit is contained in:
Daniel Black
2024-12-12 15:02:46 +11:00
parent 5a536adb03
commit ccbcafc22e
4 changed files with 63 additions and 4 deletions

View File

@@ -2886,7 +2886,7 @@ json_unquote(json_compact('["a", "b", "c"]'))
["a", "b", "c"]
select charset(json_unquote('"abc"'));
charset(json_unquote('"abc"'))
utf8mb3
utf8mb4
select json_quote(convert(X'e68891' using utf8));
json_quote(convert(X'e68891' using utf8))
"我"