Skip to content

Commit

Permalink
For keyword-based connections database should be used.
Browse files Browse the repository at this point in the history
Although dbname also works, it's specifically written
in the docs to use 'database' for keyword arguments, so
the other version may be obsoleted in the future.
  • Loading branch information
alexeyklyukin committed Dec 29, 2015
1 parent 8eb9457 commit 85d64a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -2938,7 +2938,7 @@ def build_connection(host, port, user, database):
if user:
result['user'] = user
if database:
result['dbname'] = database
result['database'] = database
return result


Expand Down

0 comments on commit 85d64a4

Please sign in to comment.