* PQexecParams * Like PQexec, but use extended query protocol so we can pass parameters */
| 2243 | * Like PQexec, but use extended query protocol so we can pass parameters |
| 2244 | */ |
| 2245 | PGresult * |
| 2246 | PQexecParams(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 |