Test a bare parsetree */
| 3610 | |
| 3611 | /* Test a bare parsetree */ |
| 3612 | static bool |
| 3613 | IsTransactionExitStmt(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 */ |
| 3629 | static bool |
no outgoing calls
no test coverage detected