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
Merge pull request #492 from mariadb-corporation/MCOL-392-fixes
Fix a bunch of issues around TIME data type
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,
|
||||
|
@ -145,7 +145,9 @@ string Func_dayname::getStrVal(rowgroup::Row& row,
|
||||
bool& isNull,
|
||||
CalpontSystemCatalog::ColType& op_ct)
|
||||
{
|
||||
uint32_t weekday = getIntVal(row, parm, isNull, op_ct);
|
||||
int32_t weekday = getIntVal(row, parm, isNull, op_ct);
|
||||
if (weekday == -1)
|
||||
return "";
|
||||
return helpers::weekdayFullNames[weekday];
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,9 @@ string Func_monthname::getStrVal(rowgroup::Row& row,
|
||||
bool& isNull,
|
||||
CalpontSystemCatalog::ColType& op_ct)
|
||||
{
|
||||
uint32_t month = getIntVal(row, parm, isNull, op_ct);
|
||||
int32_t month = getIntVal(row, parm, isNull, op_ct);
|
||||
if (month == -1)
|
||||
return "";
|
||||
return helpers::monthFullNames[month];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user