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
Replace getBinaryField
This commit is contained in:
@ -552,7 +552,7 @@ int TypeHandlerXDecimal::storeValueToField64(rowgroup::Row& row, int pos, StoreF
|
||||
|
||||
int TypeHandlerXDecimal::storeValueToField128(rowgroup::Row& row, int pos, StoreField* f) const
|
||||
{
|
||||
int128_t* decPtr = row.getBinaryField<int128_t>(pos);
|
||||
int128_t* decPtr = row.getTSInt128Field(pos).getValPtr();
|
||||
return f->store_decimal128(datatypes::Decimal(0, f->scale(), f->precision(), decPtr));
|
||||
}
|
||||
|
||||
|
@ -306,6 +306,11 @@ class TSInt128
|
||||
return s128Value;
|
||||
}
|
||||
|
||||
inline int128_t* getValPtr()
|
||||
{
|
||||
return &s128Value;
|
||||
}
|
||||
|
||||
// print int128_t parts represented as PODs
|
||||
uint8_t printPodParts(char* buf, const int128_t& high, const int128_t& mid, const int128_t& low) const;
|
||||
|
||||
|
Reference in New Issue
Block a user