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

Function pqClearAsyncResult

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

* Handy subroutine to deallocate any partially constructed async result. * * Any "next" result gets cleared too. */

Source from the content-addressed store, hash-verified

781 * Any "next" result gets cleared too.
782 */
783void
784pqClearAsyncResult(PGconn *conn)
785{
786 if (conn->result)
787 PQclear(conn->result);
788 conn->result = NULL;
789 if (conn->next_result)
790 PQclear(conn->next_result);
791 conn->next_result = NULL;
792}
793
794/*
795 * This subroutine deletes any existing async result, sets conn->result

Callers 10

PQconnectPollFunction · 0.85
freePGconnFunction · 0.85
closePGconnFunction · 0.85
getRowDescriptionsFunction · 0.85
getParamDescriptionsFunction · 0.85
getAnotherTupleFunction · 0.85
pqGetErrorNotice3Function · 0.85
pqSaveErrorResultFunction · 0.85
PQsendQueryStartFunction · 0.85
pqPipelineProcessQueueFunction · 0.85

Calls 1

PQclearFunction · 0.85

Tested by

no test coverage detected