From 73fabce769a3e7d12f42001c87106ea0f1a7fe74 Mon Sep 17 00:00:00 2001 From: Jan Szumiec Date: Sat, 11 Feb 2017 13:49:09 +0000 Subject: [PATCH] If no host or port are specified, revert to libpq to determine how to connect to the database. This may involve reading configuration files such as .pgpass, or getting it from environment variables. --- be-postgres.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be-postgres.c b/be-postgres.c index 7d1b26f6..1120979a 100644 --- a/be-postgres.c +++ b/be-postgres.c @@ -65,8 +65,8 @@ void *be_pg_init() pass = p_stab("pass"); dbname = p_stab("dbname"); - host = (host) ? host : strdup("localhost"); - port = (p) ? p : strdup("5432"); + host = (host) ? host : strdup(""); + port = (p) ? p : strdup(""); userquery = p_stab("userquery");