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
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:
@@ -4062,6 +4062,7 @@ void gp_walk(const Item *item, void *arg)
|
|||||||
{
|
{
|
||||||
String val, *str = ifp->val_str(&val);
|
String val, *str = ifp->val_str(&val);
|
||||||
string valStr;
|
string valStr;
|
||||||
|
if (str)
|
||||||
valStr.assign(str->ptr(), str->length());
|
valStr.assign(str->ptr(), str->length());
|
||||||
ConstantColumn *cc = NULL;
|
ConstantColumn *cc = NULL;
|
||||||
if (!str) //@ bug 2844 check whether parameter is defined
|
if (!str) //@ bug 2844 check whether parameter is defined
|
||||||
@@ -5248,6 +5249,7 @@ int getSelectPlan(gp_walk_info& gwi, SELECT_LEX& select_lex, SCSEP& csep, bool i
|
|||||||
{
|
{
|
||||||
String val, *str = ifp->val_str(&val);
|
String val, *str = ifp->val_str(&val);
|
||||||
string valStr;
|
string valStr;
|
||||||
|
if (str)
|
||||||
valStr.assign(str->ptr(), str->length());
|
valStr.assign(str->ptr(), str->length());
|
||||||
ConstantColumn *cc = NULL;
|
ConstantColumn *cc = NULL;
|
||||||
if (!str)
|
if (!str)
|
||||||
|
Reference in New Issue
Block a user