From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dmitriy Igrishin <dmitigr@gmail.com>
Cc: pgsql-docs@postgresql.org
Subject: Re: PQescapeLiteral(), PQescapeIdentifier() documented with invalid signatures.
Date: Wed, 04 Aug 2010 12:16:27 -0400
Message-ID: <20527.1280938587@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTikixhNnzJsrXGEdLd_Y_ysU17dhPHAXo_FGNc3p@mail.gmail.com>
References: <AANLkTikixhNnzJsrXGEdLd_Y_ysU17dhPHAXo_FGNc3p@mail.gmail.com>
Dmitriy Igrishin <dmitigr@gmail.com> writes:
> Actual signatures of libpq's functions PQescapeLiteral(),
> PQescapeIdentifier()
> is
> char *PQescapeLiteral(PGconn *conn, const char *str, size_t len)
> char *PQescapeIdentifier(PGconn *conn, const char *str, size_t len)
> that differs from signatures provided in the documentation here
> http://www.postgresql.org/docs/9.0/static/libpq-exec.html#LIBPQ-EXEC-ESCAPE-STRING
Wow ... I can understand missing the "const" declarations, but getting
the return type wrong is pretty bad :-(. Amazing nobody caught this
before. Thanks, will fix!
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, dmitigr@gmail.com
Subject: Re: PQescapeLiteral(), PQescapeIdentifier() documented with invalid signatures.
In-Reply-To: <20527.1280938587@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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