Commit 850768e7 authored by bar@bar.mysql.r18.ru's avatar bar@bar.mysql.r18.ru

Fix for MIX and MAX. Item must be checked against binary().

parent f4e1a2f2
......@@ -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;
......
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