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

MDEV-16869 String functions don't respect character set of JSON_VALUE.

Item_func_json_value::val_str() produced string of wrong charset.
This commit is contained in:
Alexey Botchkov
2018-08-05 18:33:17 +04:00
parent affdd79c69
commit fc324a5f87
3 changed files with 24 additions and 1 deletions

View File

@ -479,7 +479,7 @@ String *Item_func_json_value::val_str(String *str)
(const uchar *) js->ptr() + js->length());
str->length(0);
str->set_charset(&my_charset_utf8mb4_bin);
str->set_charset(collation.collation);
path.cur_step= path.p.steps;
continue_search: