mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Fix DB manager to work with SpatiaLite < 4.2
This commit is contained in:
parent
b952f0f177
commit
63be2e5303
@ -108,6 +108,9 @@ class SpatiaLiteDBConnector(DBConnector):
|
||||
result = self._execute(None, sql).fetchone()[0] == 1
|
||||
except ConnectionError:
|
||||
result = False
|
||||
except Exception as e:
|
||||
# SpatiaLite < 4.2 does not have HasGeoPackage() function
|
||||
result = False
|
||||
|
||||
if result:
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user