Re: About the parameter of API: PQprepared

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: iihero <iihero(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: About the parameter of API: PQprepared
Date: 2008-09-26 13:19:21
Message-ID: 15159.1222435161@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

iihero <iihero(at)gmail(dot)com> writes:
> In libpq, the definition is like:
> PGresult *
> PQprepare(PGconn *conn,
> const char *stmtName, const char *query,
> int nParams, const Oid *paramTypes)

> Could we remove the parameter "nParams"?

No. We are not going to break every existing user of the function.
But you can already set it to zero if you don't feel like prespecifying
the parameter types.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2008-09-26 13:20:21 Re: FSM, now without WAL-logging
Previous Message Zdenek Kotala 2008-09-26 13:04:51 Re: FSM, now without WAL-logging