From 36775168d3c3da213539dfedfebbbdd5fe52289b Mon Sep 17 00:00:00 2001 From: benthompson15 Date: Mon, 31 Jan 2022 13:46:13 -0600 Subject: [PATCH] MCOL-4940: getLongDoubleVal was not handling all colDataType correctly (#2229) --- utils/funcexp/func_round.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/funcexp/func_round.cpp b/utils/funcexp/func_round.cpp index 1156da952..293159570 100644 --- a/utils/funcexp/func_round.cpp +++ b/utils/funcexp/func_round.cpp @@ -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;