1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-2267 allow for long double in row::equals()

This commit is contained in:
David Hall
2019-04-02 11:36:56 -06:00
parent 7b1f461dde
commit 5f76cee5f4

View File

@ -1176,7 +1176,12 @@ inline bool Row::equals(const Row& r2, const std::vector<uint32_t>& keyCols) con
if (!isLongString(col))
{
if (getUintField(col) != r2.getUintField(col))
if (getColType(i) == execplan::CalpontSystemCatalog::LONGDOUBLE)
{
if (getLongDoubleField(i) != r2.getLongDoubleField(i))
return false;
}
else if (getUintField(col) != r2.getUintField(col))
return false;
}
else
@ -1204,7 +1209,12 @@ inline bool Row::equals(const Row& r2, uint32_t lastCol) const
for (uint32_t i = 0; i <= lastCol; i++)
if (!isLongString(i))
{
if (getUintField(i) != r2.getUintField(i))
if (getColType(i) == execplan::CalpontSystemCatalog::LONGDOUBLE)
{
if (getLongDoubleField(i) != r2.getLongDoubleField(i))
return false;
}
else if (getUintField(i) != r2.getUintField(i))
return false;
}
else