We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 7b7a1be commit d74864bCopy full SHA for d74864b
python/plugins/db_manager/db_plugins/postgis/plugin.py
@@ -303,7 +303,8 @@ def info(self):
303
def gdalUri(self, uri=None):
304
if not uri:
305
uri = self.database().uri()
306
- service = (u'service=%s' % self.service()) if self.service() else ''
+ # 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 ''
308
schema = (u'schema=%s' % self.schemaName()) if self.schemaName() else ''
309
dbname = (u'dbname=%s' % uri.database()) if uri.database() else ''
310
host = (u'host=%s' % uri.host()) if uri.host() else ''
0 commit comments