diff --git a/sql/item_sum.cc b/sql/item_sum.cc index e3524083354..ca6f17d486a 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -194,6 +194,7 @@ Item_sum_hybrid::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref) decimals=item->decimals; maybe_null=item->maybe_null; unsigned_flag=item->unsigned_flag; + set_charset(item->charset()); result_field=0; null_value=1; fix_length_and_dec();