diff options
author | unknown <sanja@montyprogram.com> | 2014-03-13 10:38:41 +0200 |
---|---|---|
committer | unknown <sanja@montyprogram.com> | 2014-03-13 10:38:41 +0200 |
commit | 70c08df4dc6899991c29c4db3253d8e4efc4ee77 (patch) | |
tree | ae111c9dfcac2a46cc36867a1abc921af67de714 /sql | |
parent | 89406110796a7bea9dccd92a8e61ca30d388f94b (diff) | |
download | mariadb-git-70c08df4dc6899991c29c4db3253d8e4efc4ee77.tar.gz |
MDEV-5840: group_concat( column_json(dynamic_column )) return empty result
Fixed max_length of dynamic columns json/create/add functions.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/item_strfunc.cc | 1 | ||||
-rw-r--r-- | sql/item_strfunc.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index 57af832c151..d10ed61d28a 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -4279,6 +4279,7 @@ bool Item_func_dyncol_create::fix_fields(THD *thd, Item **ref) void Item_func_dyncol_create::fix_length_and_dec() { + max_length= MAX_BLOB_WIDTH; maybe_null= TRUE; collation.set(&my_charset_bin); decimals= 0; diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index 7b2591e9346..7b062ad64c6 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -1174,6 +1174,7 @@ public: String *val_str(String *); void fix_length_and_dec() { + max_length= MAX_BLOB_WIDTH; maybe_null= 1; collation.set(&my_charset_bin); decimals= 0; |