1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

MCOL-1559 trailing space compare

This commit is contained in:
David Hall
2019-04-09 13:09:29 -05:00
parent 8d553ae9fb
commit 5b581f53cb
2 changed files with 11 additions and 3 deletions

View File

@ -456,11 +456,19 @@ inline bool PredicateOperator::getBoolVal(rowgroup::Row& row, bool& isNull, Retu
isNull = false;
return !ret;
}
#if 0
if (isNull)
return false;
const std::string& val1 = lop->getStrVal(row, isNull);
if (isNull)
return false;
std::string val1 = lop->getStrVal(row, isNull);
return strCompare(val1, rop->getStrVal(row, isNull)) && !isNull;
#endif
// MCOL-1559
std::string val1 = lop->getStrVal(row, isNull);
if (isNull)
return false;
@ -472,7 +480,7 @@ inline bool PredicateOperator::getBoolVal(rowgroup::Row& row, bool& isNull, Retu
boost::trim_right_if(val2, boost::is_any_of(" "));
return strCompare(val1, val2);
}
}
//FIXME: ???
case execplan::CalpontSystemCatalog::VARBINARY: