MCPcopy Create free account
hub / github.com/apache/cloudberry / PQconnectionNeedsPassword

Function PQconnectionNeedsPassword

src/interfaces/libpq/fe-connect.c:7036–7049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7034}
7035
7036int
7037PQconnectionNeedsPassword(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
7051int
7052PQconnectionUsedPassword(const PGconn *conn)

Callers 9

vacuumloFunction · 0.85
sql_connFunction · 0.85
connectDatabaseFunction · 0.85
mainFunction · 0.85
do_connectFunction · 0.85
connectDatabaseFunction · 0.85
ConnectDatabaseFunction · 0.85
GetConnectionFunction · 0.85
doConnectFunction · 0.85

Calls 1

PQpassFunction · 0.85

Tested by

no test coverage detected