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

Function getReadyForQuery

src/interfaces/libpq/fe-protocol3.c:1722–1746  ·  view source on GitHub ↗

* getReadyForQuery - process ReadyForQuery message */

Source from the content-addressed store, hash-verified

1720 * getReadyForQuery - process ReadyForQuery message
1721 */
1722static int
1723getReadyForQuery(PGconn *conn)
1724{
1725 char xact_status;
1726
1727 if (pqGetc(&xact_status, conn))
1728 return EOF;
1729 switch (xact_status)
1730 {
1731 case 'I':
1732 conn->xactStatus = PQTRANS_IDLE;
1733 break;
1734 case 'T':
1735 conn->xactStatus = PQTRANS_INTRANS;
1736 break;
1737 case 'E':
1738 conn->xactStatus = PQTRANS_INERROR;
1739 break;
1740 default:
1741 conn->xactStatus = PQTRANS_UNKNOWN;
1742 break;
1743 }
1744
1745 return 0;
1746}
1747
1748/*
1749 * saveCdbStatMsg - attach qExec statistics message to PGresult

Callers 2

pqParseInput3Function · 0.85
pqFunctionCall3Function · 0.85

Calls 1

pqGetcFunction · 0.85

Tested by

no test coverage detected