* 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
| 2422 | * when done with it. |
| 2423 | */ |
| 2424 | PGresult * |
| 2425 | PQdescribePrepared(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 |
no test coverage detected