--- a/cubicweb/server/test/data-migractions/cubicweb_fakecustomtype/site_cubicweb.py Wed Dec 18 05:39:03 2019 +0100
+++ b/cubicweb/server/test/data-migractions/cubicweb_fakecustomtype/site_cubicweb.py Thu Dec 19 15:13:10 2019 +0100
@@ -1,6 +1,5 @@
from yams import register_base_type
from logilab.database import get_db_helper
-from logilab.database.sqlgen import SQLExpression
_NUMERIC_PARAMETERS = {'scale': 0, 'precision': None}
register_base_type('Numeric', _NUMERIC_PARAMETERS)
@@ -14,4 +13,5 @@
"""
return 'numeric(%s, %s)' % (rdef.precision, rdef.scale)
+
pghelper.TYPE_MAPPING['Numeric'] = pg_numeric_sqltype