* Evaluate Constraints (in node->ps.qual) and project output TupleTableSlot. * */
| 67 | * Evaluate Constraints (in node->ps.qual) and project output TupleTableSlot. |
| 68 | * */ |
| 69 | static TupleTableSlot* |
| 70 | ExecAssertOp(PlanState *pstate) |
| 71 | { |
| 72 | PlanState *outerNode = outerPlanState(pstate); |
| 73 | TupleTableSlot *slot = ExecProcNode(outerNode); |
| 74 | |
| 75 | if (TupIsNull(slot)) |
| 76 | { |
| 77 | return NULL; |
| 78 | } |
| 79 | |
| 80 | AssertOpState *node = castNode(AssertOpState, pstate); |
| 81 | |
| 82 | CheckForAssertViolations(node, slot); |
| 83 | |
| 84 | return ExecProject(node->ps.ps_ProjInfo); |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Init AssertOp, which sets the ProjectInfo and |
nothing calls this directly
no test coverage detected