1
0
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:
benthompson15
2022-01-31 13:46:13 -06:00
committed by GitHub
parent a65b03e222
commit 36775168d3

View File

@ -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;