SELECT DISTINCT CONVERT(field USING charset) now works properly

parent f683fe68
...@@ -1925,6 +1925,7 @@ bool Item_func_conv_charset::fix_fields(THD *thd,struct st_table_list *tables) ...@@ -1925,6 +1925,7 @@ bool Item_func_conv_charset::fix_fields(THD *thd,struct st_table_list *tables)
return 1; return 1;
maybe_null=args[0]->maybe_null; maybe_null=args[0]->maybe_null;
binary=args[0]->binary; binary=args[0]->binary;
const_item_cache=args[0]->const_item();
str_value.set_charset(conv_charset); str_value.set_charset(conv_charset);
fix_length_and_dec(); fix_length_and_dec();
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment