mirror of
https://github.com/MariaDB/server.git
synced 2026-05-08 08:04:29 +02:00
Merge branch 'ob-10.0' into 10.0
This commit is contained in:
commit
80d1237470
1 changed files with 4 additions and 7 deletions
|
|
@ -2488,6 +2488,7 @@ PFIL ha_connect::CondFilter(PGLOBAL g, Item *cond)
|
|||
|
||||
switch (args[i]->real_type()) {
|
||||
case COND::STRING_ITEM:
|
||||
res= pval->val_str(&tmp);
|
||||
pp->Value= PlugSubAllocStr(g, NULL, res->ptr(), res->length());
|
||||
pp->Type= (pp->Value) ? TYPE_STRING : TYPE_ERROR;
|
||||
break;
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue