1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +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:
Roman Nozdrin
2020-11-24 15:28:38 +00:00
parent 2003417a89
commit 494bde61e1
27 changed files with 760 additions and 929 deletions

View File

@ -1188,7 +1188,7 @@ dec4: /* have to pick a scale to use for the double. using 5..
{
if (LIKELY(isInputWide))
{
datatypes::VDecimal dec(0,
datatypes::Decimal dec(0,
in.getScale(i),
in.getPrecision(i),
val128);
@ -1196,7 +1196,7 @@ dec4: /* have to pick a scale to use for the double. using 5..
}
else
{
datatypes::VDecimal dec(val,
datatypes::Decimal dec(val,
in.getScale(i),
in.getPrecision(i));
out->setStringField(dec.toString(), i);