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

Function IsTransactionExitStmtList

src/backend/tcop/postgres.c:3629–3641  ·  view source on GitHub ↗

Test a list that contains PlannedStmt nodes */

Source from the content-addressed store, hash-verified

3627
3628/* Test a list that contains PlannedStmt nodes */
3629static bool
3630IsTransactionExitStmtList(List *pstmts)
3631{
3632 if (list_length(pstmts) == 1)
3633 {
3634 PlannedStmt *pstmt = linitial_node(PlannedStmt, pstmts);
3635
3636 if (pstmt->commandType == CMD_UTILITY &&
3637 IsTransactionExitStmt(pstmt->utilityStmt))
3638 return true;
3639 }
3640 return false;
3641}
3642
3643/* Test a list that contains PlannedStmt nodes */
3644static bool

Calls 2

list_lengthFunction · 0.85
IsTransactionExitStmtFunction · 0.85