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-4409 Moved static Decimal conversion methods into VDecimal class
MCOL-4409 This patch combines VDecimal and Decimal and makes IDB_Decimal an alias for the result class MCOL-4409 More boilerplate reduction in Func_mod Removed couple TSInt128::toType() methods
This commit is contained in:
@ -133,18 +133,7 @@ int64_t Func_round::getIntVal(Row& row,
|
||||
}
|
||||
else
|
||||
{
|
||||
if (x.scale > 0)
|
||||
{
|
||||
while (x.scale-- > 0)
|
||||
x.s128Value /= 10;
|
||||
}
|
||||
else
|
||||
{
|
||||
while (x.scale++ < 0)
|
||||
x.s128Value *= 10;
|
||||
}
|
||||
|
||||
return datatypes::Decimal::getInt64FromWideDecimal(x.s128Value);
|
||||
return static_cast<int64_t>(x.getIntegralPart());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user