Skip to content

Commit 861cf9a

Browse files
committed
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
1 parent c9e6f15 commit 861cf9a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • python/plugins/db_manager/db_plugins/postgis

‎python/plugins/db_manager/db_plugins/postgis/plugin.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ def info(self):
310310
def gdalUri(self, uri=None):
311311
if not uri:
312312
uri = self.database().uri()
313-
service = (u'service=%s' % self.service()) if self.service() else ''
313+
# NOTE: service-only URIs won't work with GDAL up to 2.2.x
314+
# See: https://issues.qgis.org/issues/16626
315+
service = (u'service=%s' % uri.service()) if uri.service() else ''
314316
schema = (u'schema=%s' % self.schemaName()) if self.schemaName() else ''
315317
dbname = (u'dbname=%s' % uri.database()) if uri.database() else ''
316318
host = (u'host=%s' % uri.host()) if uri.host() else ''

0 commit comments

Comments
 (0)