| 436 | */ |
| 437 | #ifndef FRONTEND |
| 438 | static inline bool |
| 439 | ExecQual(ExprState *state, ExprContext *econtext) |
| 440 | { |
| 441 | Datum ret; |
| 442 | bool isnull; |
| 443 | |
| 444 | /* short-circuit (here and in ExecInitQual) for empty restriction list */ |
| 445 | if (state == NULL) |
| 446 | return true; |
| 447 | |
| 448 | /* verify that expression was compiled using ExecInitQual */ |
| 449 | Assert(state->flags & EEO_FLAG_IS_QUAL); |
| 450 | |
| 451 | ret = ExecEvalExprSwitchContext(state, econtext, &isnull); |
| 452 | |
| 453 | /* EEOP_QUAL should never return NULL */ |
| 454 | Assert(!isnull); |
| 455 | |
| 456 | return DatumGetBool(ret); |
| 457 | } |
| 458 | #endif |
| 459 | |
| 460 | /* |