Revision 2937
Added by Aaron Marcuse-Kubitza over 12 years ago
sql.py | ||
---|---|---|
1348 | 1348 |
|
1349 | 1349 |
log_debug('Casting '+strings.as_tt(out_col)+' input to ' |
1350 | 1350 |
+strings.as_tt(type_)) |
1351 |
def wrap_func(col): return cast(db, type_, col, errors_table_)
|
|
1352 |
mapping[out_col] = sql_gen.wrap(wrap_func, mapping[out_col])
|
|
1351 |
mapping[out_col] = cast_temp_col(db, type_, mapping[out_col],
|
|
1352 |
errors_table_)
|
|
1353 | 1353 |
except DuplicateKeyException, e: |
1354 | 1354 |
log_exc(e) |
1355 | 1355 |
|
Also available in: Unified diff
sql.py: put_table(): MissingCastException: Use cast_temp_col() so that cast will occur before any main insert, which locks the output table and should take as little time as possible