1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +03:00

MCOL-4940: getLongDoubleVal was not handling all colDataType correctly (#2227)

This commit is contained in:
benthompson15
2022-01-31 13:46:52 -06:00
committed by GitHub
parent b1beb631c1
commit 94faaaa59c

View File

@@ -231,7 +231,9 @@ long double Func_round::getLongDoubleVal(Row& row,
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;