Skip to content

Commit

Permalink
Merge branch 'ob-10.0' into 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Buggynours committed Sep 16, 2015
2 parents d69931e + 019c9e0 commit 80d1237
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions storage/connect/ha_connect.cc
Expand Up @@ -2486,9 +2486,10 @@ PFIL ha_connect::CondFilter(PGLOBAL g, Item *cond)
if (!i && (ismul))
return NULL;

switch (args[i]->real_type()) {
switch (args[i]->real_type()) {
case COND::STRING_ITEM:
pp->Value= PlugSubAllocStr(g, NULL, res->ptr(), res->length());
res= pval->val_str(&tmp);
pp->Value= PlugSubAllocStr(g, NULL, res->ptr(), res->length());
pp->Type= (pp->Value) ? TYPE_STRING : TYPE_ERROR;
break;
case COND::INT_ITEM:
Expand Down Expand Up @@ -2517,12 +2518,8 @@ PFIL ha_connect::CondFilter(PGLOBAL g, Item *cond)
return NULL;
} // endswitch type

// This was moved because cannot be done for FUNC_ITEM
if ((res= pval->val_str(&tmp)) == NULL)
return NULL; // To be clarified

if (trace)
htrc("Value=%.*s\n", res->length(), res->ptr());
htrc("Value type=%hd\n", pp->Type);

// Append the value to the argument list
if (pprec)
Expand Down

0 comments on commit 80d1237

Please sign in to comment.