pg.ddx.io pgsql-docs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
PQescapeLiteral(), PQescapeIdentifier() documented with invalid signatures. 2+ messages / 2 participants [nested] [flat]
* PQescapeLiteral(), PQescapeIdentifier() documented with invalid signatures. @ 2010-08-04 14:35 Dmitriy Igrishin <dmitigr@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: Dmitriy Igrishin @ 2010-08-04 14:35 UTC (permalink / raw) To: pgsql-docs Hey all, 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 Regards, Dmitriy ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PQescapeLiteral(), PQescapeIdentifier() documented with invalid signatures. @ 2010-08-04 16:16 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-04 16:16 UTC (permalink / raw) To: Dmitriy Igrishin <dmitigr@gmail.com>; +Cc: pgsql-docs 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2010-08-04 16:16 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2010-08-04 14:35 PQescapeLiteral(), PQescapeIdentifier() documented with invalid signatures. Dmitriy Igrishin <dmitigr@gmail.com> 2010-08-04 16:16 ` 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