Project

General

Profile

« Previous | Next » 

Revision 2382

sql.py: put_table(): Renamed the copy of in_tables that gets modified to in_tables_, so that the original list can eventually be reused in joining together the input tables into a temp table

View differences:

lib/sql.py
756 756
    temp_prefix = out_table.name
757 757
    pkeys_ref = [temp_prefix+'_pkeys']
758 758
    
759
    # Join together input tables
760
    in_tables = in_tables[:] # don't modify input!
761
    in_tables0 = in_tables.pop(0) # first table is separate
759
    # Create input joins from list of input tables
760
    in_tables_ = in_tables[:] # don't modify input!
761
    in_tables0 = in_tables_.pop(0) # first table is separate
762 762
    in_pkey = pkey(db, in_tables0, recover=True)
763 763
    in_pkey_col = sql_gen.as_Col(in_pkey, in_tables0)
764 764
    input_joins = [in_tables0]+[sql_gen.Join(v, {in_pkey: sql_gen.join_same})
765
        for v in in_tables]
765
        for v in in_tables_]
766 766
    
767 767
    out_pkey = pkey(db, out_table, recover=True)
768 768
    out_pkey_col = sql_gen.as_Col(out_pkey, out_table)

Also available in: Unified diff