From 166fd77e8f6d83d1e555693e7c74b000b1aba462 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Sat, 3 Nov 2018 11:52:19 +0000 Subject: [PATCH] MCOL-1776 Fix MCOL-1403 regression Somehow some dead code came back. It is dead again now. --- dbcon/mysql/ha_calpont_execplan.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dbcon/mysql/ha_calpont_execplan.cpp b/dbcon/mysql/ha_calpont_execplan.cpp index b98653af7..5495f88a7 100644 --- a/dbcon/mysql/ha_calpont_execplan.cpp +++ b/dbcon/mysql/ha_calpont_execplan.cpp @@ -4929,7 +4929,6 @@ void gp_walk(const Item* item, void* arg) if (isp) { - // @bug 3669. trim trailing spaces for the compare value if (isp->result_type() == STRING_RESULT) { String val, *str = isp->val_str(&val); @@ -4940,11 +4939,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; }