summaryrefslogtreecommitdiff
path: root/sql/item_jsonfunc.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-09-14 08:09:44 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2017-09-14 08:09:44 +0300
commitc97e504a5fa470c7ee4717f1e38ce12b61174741 (patch)
tree5cfe4c45f1f8226b940abd46d0a428124cf8d269 /sql/item_jsonfunc.cc
parent178540b904f3eca70488a3d1a0a55f5676087c04 (diff)
parentcfd51c01e17cd2689764a6c47de1e218adf9aaec (diff)
downloadmariadb-git-c97e504a5fa470c7ee4717f1e38ce12b61174741.tar.gz
Merge 10.2 into bb-10.2-ext
Diffstat (limited to 'sql/item_jsonfunc.cc')
-rw-r--r--sql/item_jsonfunc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_jsonfunc.cc b/sql/item_jsonfunc.cc
index 4585427b442..27d5cea3652 100644
--- a/sql/item_jsonfunc.cc
+++ b/sql/item_jsonfunc.cc
@@ -1474,6 +1474,7 @@ String *Item_func_json_array::val_str(String *str)
uint n_arg;
str->length(0);
+ str->set_charset(collation.collation);
if (str->append("[", 1) ||
((arg_count > 0) && append_json_value(str, args[0], &tmp_val)))
@@ -1798,6 +1799,7 @@ String *Item_func_json_object::val_str(String *str)
uint n_arg;
str->length(0);
+ str->set_charset(collation.collation);
if (str->append("{", 1) ||
(arg_count > 0 &&