You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-1428 Fix SUBTIME() with day in WHERE
SUBTIME() with day number used the DATETIME funciton instead of TIME so got stuck in an endless loop. Now uses the TIME calculations instead.
This commit is contained in:
@ -223,7 +223,14 @@ int64_t Func_add_time::getIntVal(rowgroup::Row& row,
|
||||
bool& isNull,
|
||||
CalpontSystemCatalog::ColType& op_ct)
|
||||
{
|
||||
return getDatetimeIntVal(row, parm, isNull, op_ct);
|
||||
if (parm[0]->data()->resultType().colDataType == execplan::CalpontSystemCatalog::TIME)
|
||||
{
|
||||
return getTimeIntVal(row, parm, isNull, op_ct);
|
||||
}
|
||||
else
|
||||
{
|
||||
return getDatetimeIntVal(row, parm, isNull, op_ct);
|
||||
}
|
||||
}
|
||||
|
||||
string Func_add_time::getStrVal(rowgroup::Row& row,
|
||||
|
Reference in New Issue
Block a user