Add an implicit "Result" operation to ExecutionPlan if necessary.
| 340 | |
| 341 | // Add an implicit "Result" operation to ExecutionPlan if necessary. |
| 342 | static inline void _implicit_result(ExecutionPlan *plan) { |
| 343 | // If the query culminates in a procedure call, it implicitly returns results. |
| 344 | if(plan->root->type == OPType_PROC_CALL) { |
| 345 | OpBase *results_op = NewResultsOp(plan); |
| 346 | ExecutionPlan_UpdateRoot(plan, results_op); |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | ExecutionPlan *ExecutionPlan_FromTLS_AST(void) { |
| 351 | AST *ast = QueryCtx_GetAST(); |
no test coverage detected