Re: libpq and prepared statements progress for 8.0
| От | Abhijit Menon-Sen | 
|---|---|
| Тема | Re: libpq and prepared statements progress for 8.0 | 
| Дата | |
| Msg-id | 20040920041309.GB4503@penne.toroid.org обсуждение исходный текст | 
| Ответ на | Re: libpq and prepared statements progress for 8.0 (David Wheeler <david@kineticode.com>) | 
| Ответы | Re: libpq and prepared statements progress for 8.0 Re: libpq and prepared statements progress for 8.0 | 
| Список | pgsql-hackers | 
At 2004-09-17 14:28:36 -0700, david@kineticode.com wrote:
>
> > Assuming that anyone steps up and does the work, that is.
> 
> So...any volunteers?
OK, how about adding a PQprepare (PQcreatePrepared?) function like this?
   PGresult *   PQprepare(PGconn *conn,             const char *stmtName,             const char *query,
intnParams,             const Oid *paramTypes)   {       ...
 
PQprepare would construct a Parse message to create a prepared statement
named stmtName from the given query, with nParams types pre-declared. It
could be called by DBD::Pg with nParams == 0 to let the server infer all
of the parameter types.
I suppose an asynchronous equivalent would also be needed.
(Yes, I'm volunteering to write both functions.)
-- ams
		
	В списке pgsql-hackers по дате отправления: