Project

General

Profile

« Previous | Next » 

Revision 4480

sql_io.py: put_table(): Combining output and input pkeys in inserted order: Fixed bug where column references would be ambiguous if the output and input pkeys have the same name (as is the case for SALVIAS.projects)

View differences:

lib/sql_io.py
641 641
        log_debug('Combining output and input pkeys in inserted order')
642 642
        pkey_joins = [insert_in_pkeys, sql_gen.Join(insert_out_pkeys,
643 643
            {sql.row_num_col: sql_gen.join_same_not_null})]
644
        insert_into_pkeys(pkey_joins, pkeys_names)
644
        insert_into_pkeys(pkey_joins, [sql_gen.Table(in_pkey, insert_in_pkeys),
645
            sql_gen.Table(out_pkey, insert_out_pkeys)])
645 646
        
646 647
        sql.empty_temp(db, [insert_out_pkeys, insert_in_pkeys])
647 648
    

Also available in: Unified diff