Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group