MDEV-13995 MAX(timestamp) returns a wrong result near DST change

This commit is contained in:
Alexander Barkov 2018-12-08 19:39:23 +04:00
commit 34eb98387f
26 changed files with 1850 additions and 16 deletions

View file

@ -2381,6 +2381,15 @@ Item_sum_hybrid::val_str(String *str)
}
bool Item_sum_hybrid::val_native(THD *thd, Native *to)
{
DBUG_ASSERT(fixed == 1);
if (null_value)
return true;
return val_native_from_item(thd, value, to);
}
void Item_sum_hybrid::cleanup()
{
DBUG_ENTER("Item_sum_hybrid::cleanup");