mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
Fix missing attribute connection in VLayerConnector during init
This fix initialize the two variabiles connection and _uri in VLayerConnector as it is implemented in all the other db_plugins. This fix avoid a crash when __del__ is called in the class DBConnector that check is connection is null which does not exist in VLayerConnector.
This commit is contained in:
parent
295b17c32c
commit
5889241305
@ -112,6 +112,8 @@ class VLayerRegistry:
|
|||||||
class VLayerConnector(DBConnector):
|
class VLayerConnector(DBConnector):
|
||||||
|
|
||||||
def __init__(self, uri):
|
def __init__(self, uri):
|
||||||
|
DBConnector.__init__(self, uri)
|
||||||
|
|
||||||
self.mapSridToName = {}
|
self.mapSridToName = {}
|
||||||
|
|
||||||
def _execute(self, cursor, sql):
|
def _execute(self, cursor, sql):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user