From d9f1f30ae0fe9c7a5e5b69aa1f7528fa2df3e063 Mon Sep 17 00:00:00 2001 From: chenchao <1790599142@qq.com> Date: Tue, 21 Feb 2023 14:25:48 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=85=B1=E4=BA=AB=E5=AD=98=E5=82=A8]=E6=94=BE?= =?UTF-8?q?=E5=BC=80=E4=BA=8C=E9=98=B6=E6=AE=B5=E4=BA=8B=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/backend/parser/gram.y | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/common/backend/parser/gram.y b/src/common/backend/parser/gram.y index ffa7c3cef..9a82544de 100644 --- a/src/common/backend/parser/gram.y +++ b/src/common/backend/parser/gram.y @@ -17145,13 +17145,6 @@ TransactionStmt: } | PREPARE TRANSACTION Sconst { - if (ENABLE_DMS) { - const char* message = "PREPARE TRANSACTION is not supported while DMS and DSS enabled"; - InsertErrorMessage(message, u_sess->plsql_cxt.plpgsql_yylloc); - ereport(errstate, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("PREPARE TRANSACTION is not supported while DMS and DSS enabled"))); - } - TransactionStmt *n = makeNode(TransactionStmt); n->kind = TRANS_STMT_PREPARE; n->gid = $3; @@ -17159,13 +17152,6 @@ TransactionStmt: } | COMMIT PREPARED Sconst { - if (ENABLE_DMS) { - const char* message = "COMMIT TRANSACTION is not supported while DMS and DSS enabled"; - InsertErrorMessage(message, u_sess->plsql_cxt.plpgsql_yylloc); - ereport(errstate, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("COMMIT TRANSACTION is not supported while DMS and DSS enabled"))); - } - TransactionStmt *n = makeNode(TransactionStmt); n->kind = TRANS_STMT_COMMIT_PREPARED; n->gid = $3; @@ -17174,13 +17160,6 @@ TransactionStmt: } | COMMIT PREPARED Sconst WITH Sconst { - if (ENABLE_DMS) { - const char* message = "COMMIT TRANSACTION is not supported while DMS and DSS enabled"; - InsertErrorMessage(message, u_sess->plsql_cxt.plpgsql_yylloc); - ereport(errstate, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("COMMIT TRANSACTION is not supported while DMS and DSS enabled"))); - } - TransactionStmt *n = makeNode(TransactionStmt); n->kind = TRANS_STMT_COMMIT_PREPARED; n->gid = $3; @@ -17189,13 +17168,6 @@ TransactionStmt: } | ROLLBACK PREPARED Sconst { - if (ENABLE_DMS) { - const char* message = "ROLLBACK TRANSACTION is not supported while DMS and DSS enabled"; - InsertErrorMessage(message, u_sess->plsql_cxt.plpgsql_yylloc); - ereport(errstate, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("ROLLBACK TRANSACTION is not supported while DMS and DSS enabled"))); - } - TransactionStmt *n = makeNode(TransactionStmt); n->kind = TRANS_STMT_ROLLBACK_PREPARED; n->gid = $3;