Project

General

Profile

« Previous | Next » 

Revision 14074

bugfix: lib/sql_io.py: put_table(): handle_MissingCastException(): when updating join_cols, don't add new entry for join_cols[out_col], only update existing one. this fixes #902 (import bug), and with #902 fixed, #887 (disk space leak) should no longer occur.

View differences:

sql_io.py
632 632
            in_col = mapping[out_col]
633 633
            while True:
634 634
                try:
635
                    join_cols[out_col] = mapping[out_col] = cast_temp_col(db,
636
                        type_, in_col, errors_table_)
635
                    cast_col = cast_temp_col(db, type_, in_col, errors_table_)
636
                    mapping[out_col] = cast_col
637
                    if out_col in join_cols: join_cols[out_col] = cast_col
637 638
                    break # cast successful
638 639
                except sql.InvalidValueException, e:
639 640
                    if not log_exc(e): return False

Also available in: Unified diff