| 7034 | } |
| 7035 | |
| 7036 | int |
| 7037 | PQconnectionNeedsPassword(const PGconn *conn) |
| 7038 | { |
| 7039 | char *password; |
| 7040 | |
| 7041 | if (!conn) |
| 7042 | return false; |
| 7043 | password = PQpass(conn); |
| 7044 | if (conn->password_needed && |
| 7045 | (password == NULL || password[0] == '\0')) |
| 7046 | return true; |
| 7047 | else |
| 7048 | return false; |
| 7049 | } |
| 7050 | |
| 7051 | int |
| 7052 | PQconnectionUsedPassword(const PGconn *conn) |
no test coverage detected