1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

Merge pull request #915 from jmrojas2332/MCOL-3474

MCOL-3474 TIMEDIFF() returns incorrect result fix
This commit is contained in:
Andrew Hutchings
2019-10-18 15:09:24 +01:00
committed by GitHub

View File

@@ -119,9 +119,7 @@ string Func_timediff::getStrVal(rowgroup::Row& row,
case execplan::CalpontSystemCatalog::TIME:
case execplan::CalpontSystemCatalog::DATETIME:
// Diff between time and datetime returns NULL in MariaDB
if ((type2 == execplan::CalpontSystemCatalog::TIME ||
type2 == execplan::CalpontSystemCatalog::DATETIME) &&
type1 != type2)
if (type1 != type2)
{
isNull = true;
break;