You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-1822 add LONG DOUBLE support
This commit is contained in:
@ -330,6 +330,7 @@ public:
|
||||
template<int len> inline int64_t getIntField(uint32_t colIndex) const;
|
||||
inline int64_t getIntField(uint32_t colIndex) const;
|
||||
template<int len> inline bool equals(uint64_t val, uint32_t colIndex) const;
|
||||
inline bool equals(long double val, uint32_t colIndex) const;
|
||||
inline bool equals(const std::string& val, uint32_t colIndex) const;
|
||||
|
||||
inline double getDoubleField(uint32_t colIndex) const;
|
||||
@ -616,6 +617,11 @@ inline bool Row::equals(uint64_t val, uint32_t colIndex) const
|
||||
}
|
||||
}
|
||||
|
||||
inline bool Row::equals(long double val, uint32_t colIndex) const
|
||||
{
|
||||
return *((long double*) &data[offsets[colIndex]]) == val;
|
||||
}
|
||||
|
||||
inline bool Row::equals(const std::string& val, uint32_t colIndex) const
|
||||
{
|
||||
if (inStringTable(colIndex))
|
||||
|
Reference in New Issue
Block a user