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
MCOL-4940: getLongDoubleVal was not handling all colDataType correctly (#2229)
This commit is contained in:
@ -219,7 +219,9 @@ double Func_round::getDoubleVal(Row& row, FunctionParm& parm, bool& isNull,
|
||||
long double Func_round::getLongDoubleVal(Row& row, FunctionParm& parm, bool& isNull,
|
||||
CalpontSystemCatalog::ColType& op_ct)
|
||||
{
|
||||
if (execplan::CalpontSystemCatalog::LONGDOUBLE == op_ct.colDataType)
|
||||
if (execplan::CalpontSystemCatalog::LONGDOUBLE == op_ct.colDataType ||
|
||||
execplan::CalpontSystemCatalog::DOUBLE == op_ct.colDataType ||
|
||||
execplan::CalpontSystemCatalog::FLOAT == op_ct.colDataType)
|
||||
{
|
||||
int64_t d = 0;
|
||||
long double p = 1;
|
||||
|
Reference in New Issue
Block a user