We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 5b86e38 commit a6c3de3Copy full SHA for a6c3de3
python/plugins/db_manager/db_plugins/spatialite/connector.py
@@ -126,8 +126,8 @@ def hasCreateSpatialViewSupport(self):
126
return True
127
128
def isgpkg(self):
129
- info = float( ".".join( self.getInfo()[0].split('.')[0:2] ) )
130
- if info < 4.2:
+ info = map( int, self.getInfo()[0].split('.')[0:2] )
+ if info[0] < 4 or (info[0]==4 and info[1]<2):
131
result = self.uri().database()[-5:] == ".gpkg"
132
else:
133
sql = u"SELECT HasGeoPackage()"
0 commit comments