1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-4236 DATE is still returned as INT

This commit is contained in:
David Hall
2020-08-19 14:35:09 -05:00
parent 6075aa337c
commit 791ff2bea4

View File

@ -143,7 +143,12 @@ int64_t Func_ceil::getIntVal(Row& row,
case CalpontSystemCatalog::DATE:
{
ret = parm[0]->data()->getDateIntVal(row, isNull);
// For some reason, MDB doesn't return this as a date,
// but datetime is returned as a datetime. Expect
// this to change in the future.
Date d (parm[0]->data()->getDateIntVal(row, isNull));
if (!isNull)
ret = d.convertToMySQLint();
}
break;