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

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

pgsql-docs by date

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

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