Skip to content

Commit

Permalink
db_manager: properly parse sqlite version (followup 5b86e38)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jul 11, 2015
1 parent 5b86e38 commit a6c3de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/db_manager/db_plugins/spatialite/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def hasCreateSpatialViewSupport(self):
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()"
Expand Down

0 comments on commit a6c3de3

Please sign in to comment.