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

Use signed integer comparison for TIME data type in the ORDER BY clause.

This commit is contained in:
Gagan Goel
2019-10-04 17:46:58 -04:00
parent 1f475340dc
commit c3a5b57d85

View File

@ -268,6 +268,7 @@ void CompareRule::compileRules(const std::vector<IdbSortSpec>& spec, const rowgr
case CalpontSystemCatalog::BIGINT: case CalpontSystemCatalog::BIGINT:
case CalpontSystemCatalog::DECIMAL: case CalpontSystemCatalog::DECIMAL:
case CalpontSystemCatalog::UDECIMAL: case CalpontSystemCatalog::UDECIMAL:
case CalpontSystemCatalog::TIME:
{ {
Compare* c = new IntCompare(*i); Compare* c = new IntCompare(*i);
fCompares.push_back(c); fCompares.push_back(c);
@ -319,7 +320,6 @@ void CompareRule::compileRules(const std::vector<IdbSortSpec>& spec, const rowgr
case CalpontSystemCatalog::DATE: case CalpontSystemCatalog::DATE:
case CalpontSystemCatalog::DATETIME: case CalpontSystemCatalog::DATETIME:
case CalpontSystemCatalog::TIMESTAMP: case CalpontSystemCatalog::TIMESTAMP:
case CalpontSystemCatalog::TIME:
{ {
Compare* c = new UintCompare(*i); Compare* c = new UintCompare(*i);
fCompares.push_back(c); fCompares.push_back(c);