Project

General

Profile

« Previous | Next » 

Revision 2715

sql.py: put_table(): MissingCastException: Use in_tables0's source table to locate the errors table in case in_tables0 has been subset into a temp table (which removes the schema name)

View differences:

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

Also available in: Unified diff