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