From 84e65fdf73138f232a14c9f72971dccdb6d9dc04 Mon Sep 17 00:00:00 2001 From: openGaussDev Date: Wed, 9 Mar 2022 17:54:10 +0800 Subject: [PATCH] fix revert select into clob Offering: openGaussDev More detail: fix revert select into clob Match-id-1493a65ab2a81b36455743e029e4a34d798c7e1e --- src/common/pl/plpgsql/src/pl_exec.cpp | 5 ----- src/test/regress/expected/hw_package_single.out | 5 +++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/common/pl/plpgsql/src/pl_exec.cpp b/src/common/pl/plpgsql/src/pl_exec.cpp index e3b0f2d34..a7699c812 100644 --- a/src/common/pl/plpgsql/src/pl_exec.cpp +++ b/src/common/pl/plpgsql/src/pl_exec.cpp @@ -5535,10 +5535,6 @@ static int exec_stmt_execsql(PLpgSQL_execstate* estate, PLpgSQL_stmt_execsql* st plpgsql_estate = estate; -#ifndef ENABLE_MULTIPLE_NODES - t_thrd.xact_cxt.isSelectInto = stmt->into; -#endif - /* * Execute the plan */ @@ -5747,7 +5743,6 @@ static int exec_stmt_execsql(PLpgSQL_execstate* estate, PLpgSQL_stmt_execsql* st estate->cursor_return_data = saved_cursor_data; estate->cursor_return_numbers = saved_cursor_numbers; - t_thrd.xact_cxt.isSelectInto = false; return PLPGSQL_RC_OK; } diff --git a/src/test/regress/expected/hw_package_single.out b/src/test/regress/expected/hw_package_single.out index 19bfe590d..c7712b709 100644 --- a/src/test/regress/expected/hw_package_single.out +++ b/src/test/regress/expected/hw_package_single.out @@ -582,6 +582,7 @@ begin end; / call test_lob_write_nodyna(); +ezz test_lob_write_nodyna ----------------------- @@ -590,8 +591,8 @@ call test_lob_write_nodyna(); select * from test_clob; a | b ---+----- + 2 | zzz 1 | dbc - 2 | ezz (2 rows) create or replace procedure test_blob_write @@ -639,7 +640,7 @@ call test_clob_append(); select * from test_clob; a | b ---+-------- - 2 | ezz + 2 | zzz 1 | dbcddd (2 rows)