diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2017-12-12 19:28:26 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2017-12-12 19:28:26 +0200 |
commit | ce07d09fd3eb1abbfe3c2ff75a78ef4eacf34bd7 (patch) | |
tree | 006fe23182bd63ca669c55ef7f52b6374e7c0df2 /sql/item_strfunc.h | |
parent | de76cbdcb0728b80c0f7b453b24b0b81f653e450 (diff) | |
parent | 622466644dda1e3c72f5fe276e3a8127b20c1182 (diff) | |
download | mariadb-git-ce07d09fd3eb1abbfe3c2ff75a78ef4eacf34bd7.tar.gz |
Merge 10.0 into 10.1
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index 95eac328a47..467e2bd530b 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -784,6 +784,7 @@ public: max_length= arg_count * 4; } const char *func_name() const { return "char"; } + void print(String *str, enum_query_type query_type); }; @@ -1283,14 +1284,14 @@ public: class Item_func_dyncol_json: public Item_str_func { public: - Item_func_dyncol_json(THD *thd, Item *str): Item_str_func(thd, str) {} + Item_func_dyncol_json(THD *thd, Item *str): Item_str_func(thd, str) + {collation.set(DYNCOL_UTF);} const char *func_name() const{ return "column_json"; } String *val_str(String *); void fix_length_and_dec() { max_length= MAX_BLOB_WIDTH; maybe_null= 1; - collation.set(&my_charset_bin); decimals= 0; } }; @@ -1323,7 +1324,8 @@ public: class Item_func_dyncol_list: public Item_str_func { public: - Item_func_dyncol_list(THD *thd, Item *str): Item_str_func(thd, str) {}; + Item_func_dyncol_list(THD *thd, Item *str): Item_str_func(thd, str) + {collation.set(DYNCOL_UTF);} void fix_length_and_dec() { maybe_null= 1; max_length= MAX_BLOB_WIDTH; }; const char *func_name() const{ return "column_list"; } String *val_str(String *); |