fixed issue 1398, brackets in libspatialite load extension, thanks rmdpedroso

This commit is contained in:
Massimo committed 2013-03-21 11:21:53 -05:00
1 parent 3494fa2d0d
commit 675245eb15
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -2260,7 +2260,7 @@ class SpatiaLiteAdapter(SQLiteAdapter):
# Linux uses libspatialite.so
# Mac OS X uses libspatialite.dylib
libspatialite = SPATIALLIBS[platform.system()]
self.execute(r'SELECT load_extension("%s");') % libspatialite
self.execute(r'SELECT load_extension("%s");' % libspatialite)
self.connection.create_function('web2py_extract', 2,
SQLiteAdapter.web2py_extract)