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

libpq (PQprepared)

From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: libpq (PQprepared)
Date: 2010-08-29 09:17:37
Message-ID: AANLkTinh0ZYJeBfGC9hJs0cH0qzPPg1iTFL5njaKqhtU@mail.gmail.com (view raw or flat)
Thread:
Lists: 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

Responses

pgsql-docs by date

Next:From: Thom BrownDate: 2010-08-29 10:56:55
Subject: Re: [pgsql-www] Example indenting
Previous:From: Dave PageDate: 2010-08-29 07:39:40
Subject: Re: [pgsql-www] Example indenting

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