Skip to content
Permalink
Browse files

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 861cf9abad0a5ab0b89fcdb314ae1960a7fc743d
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/db_manager/db_plugins/postgis/plugin.py
@@ -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 ''

0 comments on commit 861cf9a

Please sign in to comment.
You can’t perform that action at this time.