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

Function PQdescribePrepared

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

* PQdescribePrepared * Obtain information about a previously prepared statement * * If the query was not even sent, return NULL; conn->errorMessage is set to * a relevant message. * If the query was sent, a new PGresult is returned (which could indicate * either success or failure). On success, the PGresult contains status * PGRES_COMMAND_OK, and its parameter and column-heading fields d

Source from the content-addressed store, hash-verified

2422 * when done with it.
2423 */
2424PGresult *
2425PQdescribePrepared(PGconn *conn, const char *stmt)
2426{
2427 if (!PQexecStart(conn))
2428 return NULL;
2429 if (!PQsendDescribe(conn, 'S', stmt))
2430 return NULL;
2431 return PQexecFinish(conn);
2432}
2433
2434/*
2435 * PQdescribePortal

Callers 2

ECPGdescribeFunction · 0.85
DescribeQueryFunction · 0.85

Calls 3

PQexecStartFunction · 0.85
PQsendDescribeFunction · 0.85
PQexecFinishFunction · 0.85

Tested by

no test coverage detected