change database configuration to env vars, fix
This commit is contained in:
parent
73567d3230
commit
1adf5fa9d0
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user