!6132 修复存储过程执行commit报错的问题

Merge pull request !6132 from chenxiaobin/fixForbid
This commit is contained in:
opengauss_bot
2024-08-30 09:39:27 +00:00
committed by Gitee

View File

@ -7727,7 +7727,7 @@ static int exec_stmt_execsql(PLpgSQL_execstate* estate, PLpgSQL_stmt_execsql* st
gsplsql_report_query(expr);
#ifndef ENABLE_MULTIPLE_NODES
ListCell* l = NULL;
bool isforbid = true;
bool isforbid = false;
bool savedisAllowCommitRollback = false;
bool needResetErrMsg = false;
foreach (l, SPI_plan_get_plan_sources(expr->plan)) {