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

MCOL-1559 trim strings before compare on equal operator

This commit is contained in:
David Hall
2019-06-27 10:18:10 -05:00
parent 567de10204
commit 474039b6cf
4 changed files with 38 additions and 69 deletions

View File

@ -188,7 +188,8 @@ void PrimitiveProcessor::p_TokenByScan(const TokenByScanRequestHeader* h,
{
// MCOL-1246 Trim whitespace before match
string strData(sig, siglen);
boost::trim_right_if(strData, boost::is_any_of(" "));
// boost::trim_right_if(strData, boost::is_any_of(" "));
boost::algorithm::trim_right(strData);
bool gotIt = eqFilter->find(strData) != eqFilter->end();
if ((h->COP1 == COMPARE_EQ && gotIt) || (h->COP1 == COMPARE_NE &&