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

MCOL-1559 only trim on spaces, not on tabs. Don't ask me why that is.

This commit is contained in:
David Hall
2019-07-05 12:53:01 -05:00
parent db597e914b
commit b3df052b9f
2 changed files with 4 additions and 5 deletions

View File

@ -188,8 +188,7 @@ 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::algorithm::trim_right(strData);
boost::trim_right_if(strData, boost::is_any_of(" "));
bool gotIt = eqFilter->find(strData) != eqFilter->end();
if ((h->COP1 == COMPARE_EQ && gotIt) || (h->COP1 == COMPARE_NE &&