1
0
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:
mariadb-AndreyPiskunov
2022-08-25 18:21:43 +03:00
parent 3d10d0707b
commit 0863ecd279
9 changed files with 43 additions and 54 deletions

View File

@ -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));
}

View File

@ -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;