diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-10-18 22:00:42 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-10-18 22:00:42 +0000 |
| commit | 9d9cfb1ad75b60f4e9258078d7f483ea123dc7b2 (patch) | |
| tree | 9d908c4439d2025f1e424dfe599c7eb53dc74a41 /src/interfaces/libpq/libpq-fe.h | |
| parent | b3fe6bcafe8f54ca354495a01eeff1b0a5353892 (diff) | |
| download | postgresql-9d9cfb1ad75b60f4e9258078d7f483ea123dc7b2.tar.gz | |
Add PQprepare/PQsendPrepared functions to libpq to support preparing
statements without necessarily specifying the datatypes of their parameters.
Abhijit Menon-Sen with some help from Tom Lane.
Diffstat (limited to 'src/interfaces/libpq/libpq-fe.h')
| -rw-r--r-- | src/interfaces/libpq/libpq-fe.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h index 55e288b417..1fba91bde4 100644 --- a/src/interfaces/libpq/libpq-fe.h +++ b/src/interfaces/libpq/libpq-fe.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-fe.h,v 1.111 2004/10/16 22:52:55 tgl Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-fe.h,v 1.112 2004/10/18 22:00:42 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -304,6 +304,9 @@ extern PGresult *PQexecParams(PGconn *conn, const int *paramLengths, const int *paramFormats, int resultFormat); +extern PGresult *PQprepare(PGconn *conn, const char *stmtName, + const char *query, int nParams, + const Oid *paramTypes); extern PGresult *PQexecPrepared(PGconn *conn, const char *stmtName, int nParams, @@ -322,6 +325,9 @@ extern int PQsendQueryParams(PGconn *conn, const int *paramLengths, const int *paramFormats, int resultFormat); +extern int PQsendPrepare(PGconn *conn, const char *stmtName, + const char *query, int nParams, + const Oid *paramTypes); extern int PQsendQueryPrepared(PGconn *conn, const char *stmtName, int nParams, |
