mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
db_manager: properly parse sqlite version (followup 5b86e38)
This commit is contained in:
parent
5b86e38676
commit
a6c3de3047
@ -126,8 +126,8 @@ class SpatiaLiteDBConnector(DBConnector):
|
||||
return True
|
||||
|
||||
def isgpkg(self):
|
||||
info = float( ".".join( self.getInfo()[0].split('.')[0:2] ) )
|
||||
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):
|
||||
result = self.uri().database()[-5:] == ".gpkg"
|
||||
else:
|
||||
sql = u"SELECT HasGeoPackage()"
|
||||
|
Loading…
x
Reference in New Issue
Block a user