1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-13633 JSON_ARRAY() - bad output with some UTF8 characters.

set_charset() calls added for Item_func_json_arran
        and Item_func_json_object::val_str-s.
This commit is contained in:
Alexey Botchkov
2017-09-13 15:17:28 +04:00
parent a237a92099
commit dc82f70e9f
3 changed files with 14 additions and 0 deletions

View File

@ -699,3 +699,9 @@ select @str, @path, JSON_EXTRACT(@str, @path);
select json_array(5,json_query('[1,2]','$'));
json_array(5,json_query('[1,2]','$'))
[5, [1,2]]
SELECT JSON_ARRAY('1. ě 2. š 3. č 4. ř 5. ž 6. ý 7. á 8. í 9. é 10. ů 11. ú') AS json_data;
json_data
["1. ě 2. š 3. č 4. ř 5. ž 6. ý 7. á 8. í 9. é 10. ů 11. ú"]
SELECT JSON_OBJECT("user","Jožko Mrkvičká") as json_data;
json_data
{"user": "Jožko Mrkvičká"}