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

Commit

Permalink
If no host or port are specified, revert to libpq to determine how to…
Browse files Browse the repository at this point in the history
… connect to the database.

This may involve reading configuration files such as .pgpass, or getting it from environment variables.
  • Loading branch information
jasiek committed Feb 11, 2017
1 parent e2bc941 commit 73fabce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be-postgres.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 73fabce

Please sign in to comment.