From 646fa5f45f86f2c8c9deb876bd7de3560ba142f5 Mon Sep 17 00:00:00 2001 From: nnuanyang Date: Mon, 21 Apr 2025 11:33:55 +0800 Subject: [PATCH] =?UTF-8?q?exit=E5=A4=B1=E8=B4=A5=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=AD=BB=E5=BE=AA=E7=8E=AF=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/pl/plpgsql/src/pl_exec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/pl/plpgsql/src/pl_exec.cpp b/src/common/pl/plpgsql/src/pl_exec.cpp index 5c06962582..effff0a811 100644 --- a/src/common/pl/plpgsql/src/pl_exec.cpp +++ b/src/common/pl/plpgsql/src/pl_exec.cpp @@ -4049,7 +4049,7 @@ static int expand_stmts(PLpgSQL_execstate* estate, List* stmts, bool& exception_ return PLPGSQL_RC_OK; } - while(stmtid < num_stmts && !early_exit) { + while(stmtid < num_stmts && !early_exit && rc != PLPGSQL_RC_EXIT) { if (exception_flag) { if (rc == -1) rc = PLPGSQL_RC_EXIT; -- Gitee