Project

General

Profile

« Previous | Next » 

Revision 4025

sql_io.py: put_table(): DuplicateKeyException: is_literals: Fixed bug where sql.select() needed to select on just the join_cols, not the whole mapping

View differences:

lib/sql_io.py
549 549
            
550 550
            if is_literals:
551 551
                return sql.value(sql.select(db, out_table, [out_pkey_col],
552
                    mapping, order_by=None))
552
                    join_cols, order_by=None))
553 553
            
554 554
            # Uniquify input table to avoid internal duplicate keys
555 555
            insert_in_table = sql.distinct_table(db, insert_in_table,

Also available in: Unified diff