1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-1403 Remove whitespace trimming on constants

This appears to be to fix equality matches in InfiniDB but at the same
time it breaks LIKE processing. Equality matching with trailing
whitespace was fixed in MCOL-1246 so the old InfiniDB patch can be
removed.
This commit is contained in:
Andrew Hutchings
2018-05-10 17:35:38 +01:00
parent e66cceb1a3
commit fbf2f2e979
2 changed files with 0 additions and 16 deletions

View File

@ -4099,7 +4099,6 @@ void gp_walk(const Item *item, void *arg)
Item_string* isp = (Item_string*)item;
if (isp)
{
// @bug 3669. trim trailing spaces for the compare value
if (isp->result_type() == STRING_RESULT)
{
String val, *str = isp->val_str(&val);
@ -4108,9 +4107,6 @@ void gp_walk(const Item *item, void *arg)
{
cval.assign(str->ptr(), str->length());
}
size_t spos = cval.find_last_not_of(" ");
if (spos != string::npos)
cval = cval.substr(0, spos+1);
gwip->rcWorkStack.push(new ConstantColumn(cval));
break;
}