change database configuration to env vars, fix

This commit is contained in:
Wolfgang Hottgenroth 2023-09-27 11:39:53 +02:00
parent 73567d3230
commit 1adf5fa9d0
Signed by: wn
GPG Key ID: 836E9E1192A6B132

View File

@ -60,7 +60,7 @@ int openDatabaseConnection(t_commonHandle *handle) {
if (! handle->conn) { if (! handle->conn) {
logmsg(LOG_DEBUG, "Opening connection to database"); logmsg(LOG_DEBUG, "Opening connection to database");
handle->conn = PQconnectdb(); handle->conn = PQconnectdb("");
} else if (PQstatus(handle->conn) != CONNECTION_OK) { } else if (PQstatus(handle->conn) != CONNECTION_OK) {
logmsg(LOG_DEBUG, "Resetting connection to database"); logmsg(LOG_DEBUG, "Resetting connection to database");
PQreset(handle->conn); PQreset(handle->conn);