| 92 | } |
| 93 | |
| 94 | static OpResult ApplyReset(OpBase *opBase) { |
| 95 | Apply *op = (Apply *)opBase; |
| 96 | op->r = NULL; |
| 97 | |
| 98 | // free collected records |
| 99 | uint32_t n = array_len(op->records); |
| 100 | for(uint32_t i = 0; i < n; i++) { |
| 101 | OpBase_DeleteRecord(op->records[i]); |
| 102 | } |
| 103 | array_clear(op->records); |
| 104 | |
| 105 | return OP_OK; |
| 106 | } |
| 107 | |
| 108 | static OpBase *ApplyClone(const ExecutionPlan *plan, const OpBase *opBase) { |
| 109 | return NewApplyOp(plan); |
nothing calls this directly
no test coverage detected