Skip to content

Commit d74864b

Browse files
committedJun 2, 2017
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 7b7a1be commit d74864b

File tree

1 file changed

+2
-1
lines changed
  • python/plugins/db_manager/db_plugins/postgis

1 file changed

+2
-1
lines changed
 

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ def info(self):
303303
def gdalUri(self, uri=None):
304304
if not uri:
305305
uri = self.database().uri()
306-
service = (u'service=%s' % self.service()) if self.service() else ''
306+
# NOTE: service-only URIs won't work with GDAL up to 2.2.x
307+
service = (u'service=%s' % uri.service()) if uri.service() else ''
307308
schema = (u'schema=%s' % self.schemaName()) if self.schemaName() else ''
308309
dbname = (u'dbname=%s' % uri.database()) if uri.database() else ''
309310
host = (u'host=%s' % uri.host()) if uri.host() else ''

0 commit comments

Comments
 (0)
Please sign in to comment.