mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -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):
|
||||
|
||||
def __init__(self, uri):
|
||||
DBConnector.__init__(self, uri)
|
||||
|
||||
self.mapSridToName = {}
|
||||
|
||||
def _execute(self, cursor, sql):
|
||||
|
Loading…
x
Reference in New Issue
Block a user