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

Function PQexecPrepared

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

* PQexecPrepared * Like PQexec, but execute a previously prepared statement, * using extended query protocol so we can pass parameters */

Source from the content-addressed store, hash-verified

2290 * using extended query protocol so we can pass parameters
2291 */
2292PGresult *
2293PQexecPrepared(PGconn *conn,
2294 const char *stmtName,
2295 int nParams,
2296 const char *const *paramValues,
2297 const int *paramLengths,
2298 const int *paramFormats,
2299 int resultFormat)
2300{
2301 if (!PQexecStart(conn))
2302 return NULL;
2303 if (!PQsendQueryPrepared(conn, stmtName,
2304 nParams, paramValues, paramLengths,
2305 paramFormats, resultFormat))
2306 return NULL;
2307 return PQexecFinish(conn);
2308}
2309
2310/*
2311 * Common code for PQexec and sibling routines: prepare to send command

Calls 3

PQexecStartFunction · 0.85
PQsendQueryPreparedFunction · 0.85
PQexecFinishFunction · 0.85