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

Function PQexecParams

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

* PQexecParams * Like PQexec, but use extended query protocol so we can pass parameters */

Source from the content-addressed store, hash-verified

2243 * Like PQexec, but use extended query protocol so we can pass parameters
2244 */
2245PGresult *
2246PQexecParams(PGconn *conn,
2247 const char *command,
2248 int nParams,
2249 const Oid *paramTypes,
2250 const char *const *paramValues,
2251 const int *paramLengths,
2252 const int *paramFormats,
2253 int resultFormat)
2254{
2255 if (!PQexecStart(conn))
2256 return NULL;
2257 if (!PQsendQueryParams(conn, command,
2258 nParams, paramTypes, paramValues, paramLengths,
2259 paramFormats, resultFormat))
2260 return NULL;
2261 return PQexecFinish(conn);
2262}
2263
2264/*
2265 * PQprepare

Callers 10

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
ecpg_executeFunction · 0.85
libpq_fetch_fileFunction · 0.85
libpqGetFileFunction · 0.85

Calls 3

PQexecStartFunction · 0.85
PQsendQueryParamsFunction · 0.85
PQexecFinishFunction · 0.85