Skip to content
Permalink
Browse files

db_manager: properly parse sqlite version (followup 5b86e38)

  • Loading branch information
jef-n committed Jul 11, 2015
1 parent 5b86e38 commit a6c3de3047a792340e5a6928d8f15b56a15f2778
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/db_manager/db_plugins/spatialite/connector.py
@@ -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()"

0 comments on commit a6c3de3

Please sign in to comment.
You can’t perform that action at this time.