item_sum.cc:

Fixed that MIN() didn't return proper charset for CREATE from SELECT


sql/item_sum.cc:
  Fixed that MIN() didn't return proper charset for CREATE from SELECT
This commit is contained in:
unknown 2003-02-26 11:00:36 +04:00
parent e618de1764
commit 99effd31fa

View File

@ -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();