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

MCOL-385 Fix crash observed with 10.1.19 merge

Appears to be a regression introduced in MCOL-361 which was causing a
segault with bug3670.negative.sql
This commit is contained in:
Andrew Hutchings
2016-11-07 21:04:26 +00:00
parent cf646c62c6
commit 14a9581bb6

View File

@ -4062,7 +4062,8 @@ void gp_walk(const Item *item, void *arg)
{
String val, *str = ifp->val_str(&val);
string valStr;
valStr.assign(str->ptr(), str->length());
if (str)
valStr.assign(str->ptr(), str->length());
ConstantColumn *cc = NULL;
if (!str) //@ bug 2844 check whether parameter is defined
{
@ -5248,7 +5249,8 @@ int getSelectPlan(gp_walk_info& gwi, SELECT_LEX& select_lex, SCSEP& csep, bool i
{
String val, *str = ifp->val_str(&val);
string valStr;
valStr.assign(str->ptr(), str->length());
if (str)
valStr.assign(str->ptr(), str->length());
ConstantColumn *cc = NULL;
if (!str)
{