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:
@ -161,13 +161,13 @@ public:
|
||||
return m_field->store(static_cast<double>(dl));
|
||||
}
|
||||
|
||||
int store_decimal64(const datatypes::VDecimal& dec) override
|
||||
int store_decimal64(const datatypes::Decimal& dec) override
|
||||
{
|
||||
std::string decAsAStr = dec.toString();
|
||||
return m_field->store(decAsAStr.c_str(), decAsAStr.length(), m_field->charset());
|
||||
}
|
||||
|
||||
int store_decimal128(const datatypes::VDecimal& dec) override
|
||||
int store_decimal128(const datatypes::Decimal& dec) override
|
||||
{
|
||||
std::string decAsAStr = dec.toString(true);
|
||||
return m_field->store(decAsAStr.c_str(), decAsAStr.length(), m_field->charset());
|
||||
|
Reference in New Issue
Block a user