pg.ddx.io pgsql-docs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
libpq (PQprepared) 2+ messages / 2 participants [nested] [flat]
* libpq (PQprepared) @ 2010-08-29 09:17 Dmitriy Igrishin <dmitigr@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: Dmitriy Igrishin @ 2010-08-29 09:17 UTC (permalink / raw) To: pgsql-docs Hey all, The description of PQprepare() of libpq (http://www.postgresql.org/docs/9.0/static/libpq-exec.html) says: (But PQprepare is more flexible since it does not require parameter types to be pre-specified.) But the description of PREPARE (http://www.postgresql.org/docs/9.0/static/sql-prepare.html) says: The data type of a parameter to the prepared statement. If the data type of a particular parameter is unspecified or is specified as unknown, it will be inferred from the context in which the parameter is used. So, PQprepare() is NOT more flexible in this case because PREPARE does not require parameters types to be pre-specifies also. Regards, Dmitriy ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: libpq (PQprepared) @ 2010-08-29 14:58 Tom Lane <tgl@sss.pgh.pa.us> parent: Dmitriy Igrishin <dmitigr@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2010-08-29 14:58 UTC (permalink / raw) To: Dmitriy Igrishin <dmitigr@gmail.com>; +Cc: pgsql-docs Dmitriy Igrishin <dmitigr@gmail.com> writes: > The description of PQprepare() of libpq > (http://www.postgresql.org/docs/9.0/static/libpq-exec.html) > says: > (But PQprepare is more flexible since it does not require parameter > types to be pre-specified.) > But the description of PREPARE > (http://www.postgresql.org/docs/9.0/static/sql-prepare.html) > says: > The data type of a parameter to the prepared statement. If the data > type of a particular parameter is unspecified or is specified as unknown, > it will be inferred from the context in which the parameter is used. > So, PQprepare() is NOT more flexible in this case because PREPARE > does not require parameters types to be pre-specifies also. Hmmm ... it was true when written, but is out of date now. AFAICS it's sufficient to just remove the parenthetical remark. regards, tom lane ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2010-08-29 14:58 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2010-08-29 09:17 libpq (PQprepared) Dmitriy Igrishin <dmitigr@gmail.com> 2010-08-29 14:58 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox