You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-01 06:21:41 +03:00
MCOL-4387 Convert dataconvert::decimalToString() into VDecimal and TSInt128 methods
This commit is contained in:
@ -740,13 +740,9 @@ string Func_truncate::getStrVal(Row& row,
|
||||
}
|
||||
|
||||
if (!op_ct.isWideDecimalType())
|
||||
return dataconvert::DataConvert::decimalToString(x.value, x.scale, op_ct.colDataType);
|
||||
return x.toString();
|
||||
else
|
||||
{
|
||||
char buf[datatypes::Decimal::MAXLENGTH16BYTES];
|
||||
dataconvert::DataConvert::decimalToString( &x.s128Value, x.scale, buf, (uint8_t) sizeof(buf), op_ct.colDataType);
|
||||
return string(buf);
|
||||
}
|
||||
return x.toString(true);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user