diff options
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/plpgsql/src/pl_exec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c index 192cbcf9832..bc7b00199ef 100644 --- a/src/pl/plpgsql/src/pl_exec.c +++ b/src/pl/plpgsql/src/pl_exec.c @@ -6827,12 +6827,11 @@ exec_simple_recheck_plan(PLpgSQL_expr *expr, CachedPlan *cplan) if (list_length(cplan->stmt_list) != 1) return; stmt = (PlannedStmt *) linitial(cplan->stmt_list); + Assert(IsA(stmt, PlannedStmt)); /* * 2. It must be a RESULT plan --> no scan's required */ - if (!IsA(stmt, PlannedStmt)) - return; if (stmt->commandType != CMD_SELECT) return; plan = stmt->planTree; |
