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:
@ -330,7 +330,7 @@ double Func_floor::getDoubleVal(Row& row,
|
||||
|
||||
if (op_ct.colWidth == datatypes::MAXDECIMALWIDTH)
|
||||
{
|
||||
ret = datatypes::Decimal::getDoubleFromWideDecimal(tmp.s128Value);
|
||||
ret = static_cast<double>(tmp.toTSInt128());
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -377,7 +377,7 @@ long double Func_floor::getLongDoubleVal(Row& row,
|
||||
|
||||
if (op_ct.colWidth == datatypes::MAXDECIMALWIDTH)
|
||||
{
|
||||
ret = datatypes::Decimal::getLongDoubleFromWideDecimal(tmp.s128Value);
|
||||
ret = static_cast<long double>(tmp.toTSInt128());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user