PostgreSQL not working in DB Manager (Fix #8191)

This commit is contained in:
Matthias Kuhn 2013-06-28 17:34:12 +02:00
parent a7cae07241
commit 8dc28f2be4

View File

@ -85,7 +85,7 @@ class PostGisDBPlugin(DBPlugin):
settings.endGroup() settings.endGroup()
if service != "": if service:
uri.setConnection(service, database, username, password, sslmode) uri.setConnection(service, database, username, password, sslmode)
else: else:
uri.setConnection(host, port, database, username, password, sslmode) uri.setConnection(host, port, database, username, password, sslmode)