MCPcopy Create free account
hub / github.com/apache/cloudberry / IsTransactionExitStmt

Function IsTransactionExitStmt

src/backend/tcop/postgres.c:3612–3626  ·  view source on GitHub ↗

Test a bare parsetree */

Source from the content-addressed store, hash-verified

3610
3611/* Test a bare parsetree */
3612static bool
3613IsTransactionExitStmt(Node *parsetree)
3614{
3615 if (parsetree && IsA(parsetree, TransactionStmt))
3616 {
3617 TransactionStmt *stmt = (TransactionStmt *) parsetree;
3618
3619 if (stmt->kind == TRANS_STMT_COMMIT ||
3620 stmt->kind == TRANS_STMT_PREPARE ||
3621 stmt->kind == TRANS_STMT_ROLLBACK ||
3622 stmt->kind == TRANS_STMT_ROLLBACK_TO)
3623 return true;
3624 }
3625 return false;
3626}
3627
3628/* Test a list that contains PlannedStmt nodes */
3629static bool

Callers 4

exec_simple_queryFunction · 0.85
exec_parse_messageFunction · 0.85
exec_bind_messageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected