Project

General

Profile

« Previous | Next » 

Revision 2334

sql.py: put_table(): DuplicateKeyException: Fixed bug where dict_subset_right_join() was used instead of dict_subset(), adding spurious None values for columns in the constraint which are not in the input tables

View differences:

lib/sql.py
794 794
            log_exc(e)
795 795
            
796 796
            old_join_cols = join_cols.copy()
797
            join_cols.update(util.dict_subset_right_join(mapping, e.cols))
797
            join_cols.update(util.dict_subset(mapping, e.cols))
798 798
            db.log_debug('Ignoring existing rows, comparing on '+str(join_cols))
799 799
            assert join_cols != old_join_cols # avoid infinite loops
800 800
            

Also available in: Unified diff