Skip to content
This repository was archived by the owner on Mar 12, 2019. It is now read-only.

Commit 73fabce

Browse files
committed
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.
1 parent e2bc941 commit 73fabce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

be-postgres.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ void *be_pg_init()
6565
pass = p_stab("pass");
6666
dbname = p_stab("dbname");
6767

68-
host = (host) ? host : strdup("localhost");
69-
port = (p) ? p : strdup("5432");
68+
host = (host) ? host : strdup("");
69+
port = (p) ? p : strdup("");
7070

7171
userquery = p_stab("userquery");
7272

0 commit comments

Comments
 (0)