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

Function pqGetc

src/interfaces/libpq/fe-misc.c:84–93  ·  view source on GitHub ↗

* pqGetc: get 1 character from the connection * * All these routines return 0 on success, EOF on error. * Note that for the Get routines, EOF only means there is not enough * data in the buffer, not that there is necessarily a hard error. */

Source from the content-addressed store, hash-verified

82 * data in the buffer, not that there is necessarily a hard error.
83 */
84int
85pqGetc(char *result, PGconn *conn)
86{
87 if (conn->inCursor >= conn->inEnd)
88 return EOF;
89
90 *result = conn->inBuffer[conn->inCursor++];
91
92 return 0;
93}
94
95
96/*

Callers 7

PQconnectPollFunction · 0.85
pqParseInput3Function · 0.85
pqGetErrorNotice3Function · 0.85
getCopyStartFunction · 0.85
getReadyForQueryFunction · 0.85
getCopyDataMessageFunction · 0.85
pqFunctionCall3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected