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

Right trim whitespaces for a string ConstantColumn in a where clause

This commit is contained in:
Gagan Goel
2019-09-09 23:33:46 -04:00
parent 24e1c3ff2d
commit 8513bc0646

View File

@@ -5164,6 +5164,10 @@ void gp_walk(const Item* item, void* arg)
cval.assign(str->ptr(), str->length()); cval.assign(str->ptr(), str->length());
} }
// Trim the trailing white space from the constant
// string value in the where clause
boost::algorithm::trim_right(cval);
gwip->rcWorkStack.push(new ConstantColumn(cval)); gwip->rcWorkStack.push(new ConstantColumn(cval));
(dynamic_cast<ConstantColumn*>(gwip->rcWorkStack.top()))->timeZone(gwip->thd->variables.time_zone->get_name()->ptr()); (dynamic_cast<ConstantColumn*>(gwip->rcWorkStack.top()))->timeZone(gwip->thd->variables.time_zone->get_name()->ptr());
break; break;