File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2486,9 +2486,6 @@ PFIL ha_connect::CondFilter(PGLOBAL g, Item *cond)
2486
2486
if (!i && (ismul))
2487
2487
return NULL ;
2488
2488
2489
- if ((res= pval->val_str (&tmp)) == NULL )
2490
- return NULL ; // To be clarified
2491
-
2492
2489
switch (args[i]->real_type ()) {
2493
2490
case COND::STRING_ITEM:
2494
2491
pp->Value = PlugSubAllocStr (g, NULL , res->ptr (), res->length ());
@@ -2520,7 +2517,11 @@ PFIL ha_connect::CondFilter(PGLOBAL g, Item *cond)
2520
2517
return NULL ;
2521
2518
} // endswitch type
2522
2519
2523
- if (trace)
2520
+ // This was moved because cannot be done for FUNC_ITEM
2521
+ if ((res= pval->val_str (&tmp)) == NULL )
2522
+ return NULL ; // To be clarified
2523
+
2524
+ if (trace)
2524
2525
htrc (" Value=%.*s\n " , res->length (), res->ptr ());
2525
2526
2526
2527
// Append the value to the argument list
You can’t perform that action at this time.
0 commit comments