Project

General

Profile

« Previous | Next » 

Revision 3021

sql.py: put_table(): Inserting new rows: Use insert_select()'s (mk_insert_select()'s) new ignore option to ignore duplicate keys

View differences:

sql.py
1462 1462
        if has_joins:
1463 1463
            insert_joins.append(sql_gen.Join(out_table, join_cols,
1464 1464
                sql_gen.filter_out))
1465
            insert_args.update(dict(ignore=True))
1465 1466
        else:
1466 1467
            insert_args.update(dict(returning=out_pkey, into=insert_out_pkeys))
1467 1468
        main_select = mk_main_select(insert_joins, mapping.values())

Also available in: Unified diff