Skip to content
Browse files
Ensure "dbname" is set in the uri, once again
Fixes #16625 (ref #10600)
  • Loading branch information
strk committed May 30, 2017
1 parent dcd99ad commit d1e8903cc9800266a307ca1c83dee9d2d244a385
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/db_manager/db_plugins/postgis/
@@ -52,7 +52,7 @@ def __init__(self, uri):
password = uri.password() or os.environ.get('PGPASSWORD')

# Do not get db and user names from the env if service is used
if uri.service() is None:
if not uri.service():
if username is None:
username = os.environ.get('USER')
self.dbname = uri.database() or os.environ.get('PGDATABASE') or username

0 comments on commit d1e8903

Please sign in to comment.