We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f227174 commit 1eb6376Copy full SHA for 1eb6376
python/plugins/db_manager/db_plugins/postgis/connector.py
@@ -53,10 +53,10 @@ def __init__(self, uri):
53
54
# Do not get db and user names from the env if service is used
55
if uri.service() is None:
56
- self.dbname = uri.database() or os.environ.get('PGDATABASE') or username
57
- uri.setDatabase(self.dbname)
58
if username is None:
59
username = os.environ.get('USER')
+ self.dbname = uri.database() or os.environ.get('PGDATABASE') or username
+ uri.setDatabase(self.dbname)
60
61
expandedConnInfo = self._connectionInfo()
62
try:
0 commit comments