You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4394 __float128 related code had been moved into a separate file
Trim to double and to long double conversions for Decimal
This commit is contained in:
@ -210,7 +210,7 @@ double Func_round::getDoubleVal(Row& row,
|
||||
if (!op_ct.isWideDecimalType())
|
||||
d = x.value;
|
||||
else
|
||||
d = datatypes::Decimal::getDoubleFromWideDecimal(x.s128Value);
|
||||
d = static_cast<double>(x.toTSInt128());
|
||||
|
||||
if (x.scale > 0)
|
||||
{
|
||||
@ -277,7 +277,7 @@ long double Func_round::getLongDoubleVal(Row& row,
|
||||
if (!op_ct.isWideDecimalType())
|
||||
d = x.value;
|
||||
else
|
||||
d = datatypes::Decimal::getDoubleFromWideDecimal(x.s128Value);
|
||||
d = static_cast<double>(x.toTSInt128());
|
||||
|
||||
if (x.scale > 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user