You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-330 Fix datetime to int conversion
Datetime has internal int value which is very different to MySQL's int value. This patch differentiates between the two and also fixes a column width issue which appeared once the datetime handling was fixed.
This commit is contained in:
@ -257,7 +257,7 @@ void FuncExp::evaluate(rowgroup::Row& row, std::vector<execplan::SRCP>& expressi
|
||||
}
|
||||
case CalpontSystemCatalog::DATETIME:
|
||||
{
|
||||
int64_t val = expression[i]->getIntVal(row, isNull);
|
||||
int64_t val = expression[i]->getDatetimeIntVal(row, isNull);
|
||||
if (isNull)
|
||||
row.setUintField<8>(DATETIMENULL, expression[i]->outputIndex());
|
||||
else
|
||||
|
Reference in New Issue
Block a user