Re: About the parameter of API: PQprepared - Mailing list pgsql-hackers

From Tom Lane
Subject Re: About the parameter of API: PQprepared
Date
Msg-id 15159.1222435161@sss.pgh.pa.us
Whole thread Raw
In response to About the parameter of API: PQprepared  (iihero <iihero@gmail.com>)
List pgsql-hackers
iihero <iihero@gmail.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


pgsql-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: FSM, now without WAL-logging
Next
From: Heikki Linnakangas
Date:
Subject: Re: FSM, now without WAL-logging