Project

General

Profile

« Previous | Next » 

Revision 2706

sql.py: MissingCastException: Print log message that it's casting the column, to introduce the SQL function definition that follows

View differences:

sql.py
1240 1240
            log_exc(e)
1241 1241
            
1242 1242
            out_col = e.col
1243
            type_ = e.type
1244
            
1245
            log_debug('Casting '+out_col+"'s input to "+type_)
1243 1246
            errors_table = str(in_tables0)+'.errors'
1244
            def wrap_func(col): return cast(db, e.type, col, errors_table)
1247
            def wrap_func(col): return cast(db, type_, col, errors_table)
1245 1248
            mapping[out_col] = sql_gen.wrap(wrap_func, mapping[out_col])
1246 1249
        except DatabaseErrors, e:
1247 1250
            log_exc(e)

Also available in: Unified diff