diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index c2549ddc76994c6a08f5157351b94de9d491ef04..8fb3b7f689762f4de366501dbad703b64826f57b 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -1925,6 +1925,7 @@ bool Item_func_conv_charset::fix_fields(THD *thd,struct st_table_list *tables) return 1; maybe_null=args[0]->maybe_null; binary=args[0]->binary; + const_item_cache=args[0]->const_item(); str_value.set_charset(conv_charset); fix_length_and_dec(); return 0;