Fix member access in postgis.py

This commit is contained in:
Matthias Kuhn 2017-10-16 23:34:19 +02:00
parent 6538ba0bf2
commit 60db6b0665

View File

@ -735,7 +735,7 @@ class GeoDB(object):
sql = "SELECT has_database_privilege('%(d)s', 'CREATE'), \
has_database_privilege('%(d)s', 'TEMP')" \
% {'d': self._quote_unicode(self.dbname)}
% {'d': self._quote_unicode(self.uri.database())}
c = self.con.cursor()
self._exec_sql(c, sql)
return c.fetchone()