* PQdescribePortal * Obtain information about a previously created portal * * This is much like PQdescribePrepared, except that no parameter info is * returned. Note that at the moment, libpq doesn't really expose portals * to the client; but this can be used with a portal created by a SQL * DECLARE CURSOR command. */
| 2441 | * DECLARE CURSOR command. |
| 2442 | */ |
| 2443 | PGresult * |
| 2444 | PQdescribePortal(PGconn *conn, const char *portal) |
| 2445 | { |
| 2446 | if (!PQexecStart(conn)) |
| 2447 | return NULL; |
| 2448 | if (!PQsendDescribe(conn, 'P', portal)) |
| 2449 | return NULL; |
| 2450 | return PQexecFinish(conn); |
| 2451 | } |
| 2452 | |
| 2453 | /* |
| 2454 | * PQsendDescribePrepared |
nothing calls this directly
no test coverage detected