You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
MCOL-332 Fix MONTHNAME() cast to double
Should return 0 to match MariaDB
This commit is contained in:
@@ -141,9 +141,7 @@ double Func_monthname::getDoubleVal(rowgroup::Row& row,
|
|||||||
bool& isNull,
|
bool& isNull,
|
||||||
execplan::CalpontSystemCatalog::ColType& op_ct)
|
execplan::CalpontSystemCatalog::ColType& op_ct)
|
||||||
{
|
{
|
||||||
uint64_t val = getIntVal(row, parm, isNull, op_ct);
|
return 0;
|
||||||
|
|
||||||
return (double)val;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
execplan::IDB_Decimal Func_monthname::getDecimalVal(rowgroup::Row& row,
|
execplan::IDB_Decimal Func_monthname::getDecimalVal(rowgroup::Row& row,
|
||||||
|
Reference in New Issue
Block a user