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

Function PQtransactionStatus

src/interfaces/libpq/fe-connect.c:6940–6948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6938}
6939
6940PGTransactionStatusType
6941PQtransactionStatus(const PGconn *conn)
6942{
6943 if (!conn || conn->status != CONNECTION_OK)
6944 return PQTRANS_UNKNOWN;
6945 if (conn->asyncStatus != PGASYNC_IDLE)
6946 return PQTRANS_ACTIVE;
6947 return conn->xactStatus;
6948}
6949
6950const char *
6951PQparameterStatus(const PGconn *conn, const char *paramName)

Callers 15

pgfdw_xact_callbackFunction · 0.85
pgfdw_subxact_callbackFunction · 0.85
vacuumloFunction · 0.85
dblink_openFunction · 0.85
cdbconn_disconnectFunction · 0.85
disconnectDatabaseFunction · 0.85
ECPGsetcommitFunction · 0.85
ECPGtransactionStatusFunction · 0.85
ECPGtransFunction · 0.85
SendQueryFunction · 0.85
ExecQueryUsingCursorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected