Project

General

Profile

« Previous | Next » 

Revision 2714

db_xml.py: put_table(): Track in_table's source so its original schema can be obtained and auxiliary tables located

View differences:

db_xml.py
154 154
        available
155 155
    '''
156 156
    in_table = sql_gen.as_Table(in_table)
157
    in_table.set_srcs(sql_gen.src_self, overwrite=False)
157 158
    
158 159
    # Subset in_table
159 160
    if limit != None or start != 0:
161
        full_in_table = in_table
160 162
        in_table = copy.copy(in_table) # don't modify input!
163
        in_table.set_srcs([full_in_table])
161 164
        sql.run_query_into(db, *sql.mk_select(db, in_table, limit=limit,
162 165
            start=start), into=in_table)
163 166
            # in_table will be shadowed (hidden) by the created temp table

Also available in: Unified diff