About the parameter of API: PQprepared

From: iihero <iihero(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: About the parameter of API: PQprepared
Date: 2008-09-26 06:45:10
Message-ID: f119e28b0809252345j6d224142tf29a97270ecd9011@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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"?
e.g. "insert into foo(id, name, address) values ($1, $2, $3)"
PostgreSQL possibly can parse the prepared sql statement to get the real
paramters count.

Or, is there another alternate way?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message KaiGai Kohei 2008-09-26 06:53:30 Re: Updates of SE-PostgreSQL 8.4devel patches
Previous Message KaiGai Kohei 2008-09-26 05:30:00 Re: Updates of SE-PostgreSQL 8.4devel patches