Project

General

Profile

« Previous | Next » 

Revision 5022

db_xml.py: put_table(): Subsetting in_table: Create in_table as a completely new sql_gen.Table instead of copying full_in_table and relying on sql.run_query_into() to set is_temp and remove the schema

View differences:

lib/db_xml.py
213 213
            +str(start+this_limit)+' **********', level=1.2)
214 214
        
215 215
        # Subset in_table
216
        in_table = copy.copy(full_in_table) # don't modify input!
217
        in_table.name = strings.ustr(in_table) # prepend schema
216
        in_table = sql_gen.Table(strings.ustr(full_in_table),
217
            srcs=full_in_table.srcs, is_temp=True) # prepend schema to name
218 218
        cur = sql.run_query_into(db, sql.mk_select(db, full_in_table,
219 219
            limit=this_limit, start=start), into=in_table, add_pkey_=True)
220 220
        

Also available in: Unified diff