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

Function pqSaveErrorResult

src/interfaces/libpq/fe-exec.c:799–804  ·  view source on GitHub ↗

* This subroutine deletes any existing async result, sets conn->result * to a PGresult with status PGRES_FATAL_ERROR, and stores the current * contents of conn->errorMessage into that result. */

Source from the content-addressed store, hash-verified

797 * contents of conn->errorMessage into that result.
798 */
799void
800pqSaveErrorResult(PGconn *conn)
801{
802 pqClearAsyncResult(conn);
803 conn->result = PQmakeEmptyPGresult(conn, PGRES_FATAL_ERROR);
804}
805
806/*
807 * As above, after appending conn->write_err_msg to whatever other error we

Callers 10

pqParseInput3Function · 0.85
handleSyncLossFunction · 0.85
getRowDescriptionsFunction · 0.85
getParamDescriptionsFunction · 0.85
getAnotherTupleFunction · 0.85
pqFunctionCall3Function · 0.85
pqSaveWriteErrorFunction · 0.85
PQgetResultFunction · 0.85
getCopyResultFunction · 0.85
pqPipelineProcessQueueFunction · 0.85

Calls 2

pqClearAsyncResultFunction · 0.85
PQmakeEmptyPGresultFunction · 0.85

Tested by

no test coverage detected