We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e3fdd9 commit 842edb7Copy full SHA for 842edb7
mamonsu/plugins/pgsql/driver/connection.py
@@ -12,7 +12,7 @@ class ConnectionInfo(object):
12
def __init__(self, connection_hash=None):
13
if connection_hash is None:
14
connection_hash = {}
15
- self.host = connection_hash.get('host') or os.environ.get('PGHOST')
+ self.host = connection_hash.get('host') or (os.environ.get('PGHOST') or "localhost")
16
self.port = connection_hash.get('port') or int(os.environ.get('PGPORT') or 5432)
17
self.user = connection_hash.get('user') or os.environ.get('PGUSER')
18
self.passwd = connection_hash.get('passwd') or os.environ.get('PGPASSWORD')
0 commit comments