From 850768e741a71326808a869a9b93124217a2e315 Mon Sep 17 00:00:00 2001 From: "bar@bar.mysql.r18.ru" <> Date: Wed, 26 Feb 2003 10:33:45 +0400 Subject: [PATCH] Fix for MIX and MAX. Item must be checked against binary(). --- sql/item_sum.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/item_sum.cc b/sql/item_sum.cc index ae0559e2249..e3524083354 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -188,7 +188,7 @@ Item_sum_hybrid::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref) max_length=float_length(decimals); else { - str_cmp_function= binary() ? stringcmp : sortcmp; + str_cmp_function= item->binary() ? stringcmp : sortcmp; max_length=item->max_length; } decimals=item->decimals;