Re: PQescapeLiteral(), PQescapeIdentifier() documented with invalid signatures.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: PQescapeLiteral(), PQescapeIdentifier() documented with invalid signatures.
Date: 2010-08-04 16:16:27
Message-ID: 20527.1280938587@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Dmitriy Igrishin <dmitigr(at)gmail(dot)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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Daniele Varrazzo 2010-08-04 19:03:32 Re: Please provide stable target anchors
Previous Message Dmitriy Igrishin 2010-08-04 14:35:41 PQescapeLiteral(), PQescapeIdentifier() documented with invalid signatures.