Commit 71f0fe3d authored by evgen@moonbone.local's avatar evgen@moonbone.local

item_cmpfunc.cc:

  After merge fix
parent 314b897f
...@@ -179,6 +179,10 @@ static void agg_cmp_type(THD *thd, Item_result *type, Item **items, uint nitems) ...@@ -179,6 +179,10 @@ static void agg_cmp_type(THD *thd, Item_result *type, Item **items, uint nitems)
for (i= 0; i < nitems ; i++) for (i= 0; i < nitems ; i++)
{ {
Item_result result= items[i]->result_type(); Item_result result= items[i]->result_type();
/*
Use INT_RESULT as result type for DATE/TIME fields/functions and
for constants successfully converted to DATE/TIME
*/
if (field && if (field &&
((!items[i]->const_item() && items[i]->result_as_longlong()) || ((!items[i]->const_item() && items[i]->result_as_longlong()) ||
(items[i]->const_item() && convert_constant_item(thd, field, (items[i]->const_item() && convert_constant_item(thd, field,
......
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