Skip to content

Commit d220eb9

Browse files
committed
Undo wrong fix in pl_exec.c
1 parent 044996b commit d220eb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pl/plpgsql/src/pl_exec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,15 +1230,15 @@ exec_stmt_block(PLpgSQL_execstate *estate, PLpgSQL_stmt_block *block)
12301230
edata = CopyErrorData();
12311231
FlushErrorState();
12321232

1233-
estate->eval_econtext = old_eval_econtext;
1234-
12351233
plpgsql_destroy_econtext(estate);
12361234

12371235
old_shared_estate = shared_simple_eval_estate;
12381236
shared_simple_eval_estate = NULL;
12391237
AbortCurrentTransaction();
12401238
shared_simple_eval_estate = old_shared_estate;
12411239

1240+
estate->eval_econtext = old_eval_econtext;
1241+
12421242
if (block->exceptions)
12431243
{
12441244
/* Look for a matching exception handler */

0 commit comments

Comments
 (0)