Commit 958ea303 authored by Julien Cristau's avatar Julien Cristau
Browse files

drop pretence of sqlite support from site_cubicweb

parent 9966dd9cd814
......@@ -38,12 +38,8 @@ def pg_geometry_sqltype(rdef):
# Add the datatype to the helper mapping
pghelper = get_db_helper('postgres')
sqlitehelper = get_db_helper('sqlite')
pghelper.TYPE_MAPPING['Geometry'] = pg_geometry_sqltype
sqlitehelper.TYPE_MAPPING['Geometry'] = 'text'
pghelper.TYPE_MAPPING['Geography'] = 'geography' # XXX implement a pg_geography_sqlite
sqlitehelper.TYPE_MAPPING['Geography'] = 'text'
# Add a converter for Geometry
def convert_geom(x):
......@@ -61,10 +57,6 @@ def convert_geog(x):
# Add the converter function to the known SQL_CONVERTERS
pghelper.TYPE_CONVERTERS['Geometry'] = convert_geom
pghelper.TYPE_CONVERTERS['Geography'] = convert_geog
# actually don't care of sqlite, it's just to make it possible to test
sqlitehelper.TYPE_CONVERTERS['Geometry'] = str
sqlitehelper.TYPE_CONVERTERS['Geography'] = str
class ST_EQUALS(FunctionDescr):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment