Skip to content

Commit

Permalink
connect through pgsql_sock
Browse files Browse the repository at this point in the history
  • Loading branch information
mabrek committed Sep 24, 2011
1 parent beeedcc commit bae8c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pgsql.erl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ connect(Host, Username, Opts) ->
connect(Host, Username, "", Opts).

connect(Host, Username, Password, Opts) ->
{ok, C} = pgsql_connection:start_link(),
pgsql_connection:connect(C, Host, Username, Password, Opts).
{ok, C} = pgsql_sock:start_link(),
gen_server:call(C, {connect, Host, Username, Password, Opts}).

close(C) when is_pid(C) ->
catch pgsql_connection:stop(C),
Expand Down

0 comments on commit bae8c8f

Please sign in to comment.