!5850 修复B库通过spi执行abort异常的问题

Merge pull request !5850 from chenxiaobin/fixAbort
This commit is contained in:
opengauss_bot
2024-07-26 02:11:18 +00:00
committed by Gitee

View File

@ -2802,11 +2802,7 @@ static int _SPI_execute_plan0(SPIPlanPtr plan, ParamListInfo paramLI, Snapshot s
my_res = SPI_ERROR_COPY;
goto fail;
}
} else if (IsA(stmt, TransactionStmt)
#ifndef ENABLE_MULTIPLE_NODES
&& !u_sess->attr.attr_sql.dolphin
#endif
) {
} else if (IsA(stmt, TransactionStmt)) {
my_res = SPI_ERROR_TRANSACTION;
goto fail;
}