1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

MCOL-1433 Fix TIME for MAKEDATE/TIMEDIFF

Fix saturation behaviour for TIME with MAKEDATE() and TIMEDIFF()
This commit is contained in:
Andrew Hutchings
2018-10-04 16:53:14 +01:00
parent c0600d0da0
commit a127f84793
2 changed files with 9 additions and 3 deletions

View File

@ -118,6 +118,11 @@ string Func_timediff::getStrVal(rowgroup::Row& row,
case execplan::CalpontSystemCatalog::TIME:
case execplan::CalpontSystemCatalog::DATETIME:
if (type1 != type2)
{
isNull = true;
break;
}
val1 = parm[0]->data()->getDatetimeIntVal(row, isNull);
break;