Project

General

Profile

« Previous | Next » 

Revision 2705

sql.py: put_table(): MissingCastException: Use new cast() instead of relying on existing cast functions in the database

View differences:

lib/sql.py
1240 1240
            log_exc(e)
1241 1241
            
1242 1242
            out_col = e.col
1243
            mapping[out_col] = sql_gen.wrap_in_func(e.type, mapping[out_col])
1243
            errors_table = str(in_tables0)+'.errors'
1244
            def wrap_func(col): return cast(db, e.type, col, errors_table)
1245
            mapping[out_col] = sql_gen.wrap(wrap_func, mapping[out_col])
1244 1246
        except DatabaseErrors, e:
1245 1247
            log_exc(e)
1246 1248
            

Also available in: Unified diff