You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-4387 Convert dataconvert::decimalToString() into VDecimal and TSInt128 methods
This commit is contained in:
@ -153,8 +153,10 @@ void SimpleColumn_Decimal<len>::setNullVal()
|
||||
template<int len>
|
||||
inline const std::string& SimpleColumn_Decimal<len>:: getStrVal(rowgroup::Row& row, bool& isNull)
|
||||
{
|
||||
dataconvert::DataConvert::decimalToString((int64_t)row.getIntField<len>(fInputIndex), fResultType.scale, tmp, 22, fResultType.colDataType);
|
||||
fResult.strVal = std::string(tmp);
|
||||
datatypes::VDecimal dec((int64_t)row.getIntField<len>(fInputIndex),
|
||||
fResultType.scale,
|
||||
fResultType.precision);
|
||||
fResult.strVal = dec.toString();
|
||||
return fResult.strVal;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user