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:
TiGIS Sagl 2025-07-15 14:17:35 +02:00 committed by github-actions[bot]
parent 295b17c32c
commit 5889241305

View File

@ -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):