You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
MCOL-4940: getLongDoubleVal was not handling all colDataType correctly (#2227)
This commit is contained in:
@@ -231,7 +231,9 @@ long double Func_round::getLongDoubleVal(Row& row,
|
|||||||
bool& isNull,
|
bool& isNull,
|
||||||
CalpontSystemCatalog::ColType& op_ct)
|
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;
|
int64_t d = 0;
|
||||||
long double p = 1;
|
long double p = 1;
|
||||||
|
Reference in New Issue
Block a user