From 5f7b1f8d9d835c6869637f0b0df184e6fc5e0d03 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 8 Jul 2007 18:28:56 +0000 Subject: Closer code review for PQconnectionUsedPassword() patch: in particular, not OK to include postgres_fe.h into libpq-fe.h, hence declare it as returning int not bool. --- doc/src/sgml/libpq.sgml | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index bbaade6944..e788fa109b 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,4 +1,4 @@ - + <application>libpq</application> - C Library @@ -1034,6 +1034,25 @@ int PQbackendPID(const PGconn *conn); + + PQconnectionUsedPasswordPQconnectionUsedPassword + + + Returns true (1) if the connection authentication method + required a password to be supplied. Returns false (0) if not. + +int PQconnectionUsedPassword(const PGconn *conn); + + + + + This function can be applied after either successful or failed + connection attempts. In the case of failure, it can for example + be used to decide whether to prompt the user for a password. + + + + PQgetsslPQgetssl @@ -1059,20 +1078,6 @@ SSL *PQgetssl(const PGconn *conn); - - PQconnectionUsedPasswordPQconnectionUsedPassword - - - Returns true (1) if the connection authentication method - required a password to be supplied. Returns false (0) - otherwise. - - bool PQconnectionUsedPassword(const PGconn *conn); - - - - - -- cgit v1.2.1