You've already forked mariadb-columnstore-engine
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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user