Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix typo in URI service extraction (introduced in 93624b0)
Also add a comment about lack of support in GDAL up to 2.2.x for
service specification in datasource uri

Ref #16626
  • Loading branch information
strk committed Jun 2, 2017
1 parent c9e6f15 commit 861cf9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/db_manager/db_plugins/postgis/plugin.py
Expand Up @@ -310,7 +310,9 @@ def info(self):
def gdalUri(self, uri=None):
if not uri:
uri = self.database().uri()
service = (u'service=%s' % self.service()) if self.service() else ''
# NOTE: service-only URIs won't work with GDAL up to 2.2.x
# See: https://issues.qgis.org/issues/16626
service = (u'service=%s' % uri.service()) if uri.service() else ''
schema = (u'schema=%s' % self.schemaName()) if self.schemaName() else ''
dbname = (u'dbname=%s' % uri.database()) if uri.database() else ''
host = (u'host=%s' % uri.host()) if uri.host() else ''
Expand Down

0 comments on commit 861cf9a

Please sign in to comment.