Project

General

Profile

« Previous | Next » 

Revision 2605

db_xml.py: put_table(): Subsetting in_table: Fixed bug where in_table was not being ordered by the row_num, because order_by was set to None when it should have been omitted so it would default to the pkey

View differences:

lib/db_xml.py
159 159
    if limit != None or start != 0:
160 160
        in_table = copy.copy(in_table) # don't modify input!
161 161
        sql.run_query_into(db, *sql.mk_select(db, in_table, limit=limit,
162
            start=start, order_by=None), into=in_table)
162
            start=start), into=in_table)
163 163
            # in_table will be shadowed (hidden) by the created temp table
164 164
    
165 165
    def pkey(table): return sql.pkey(db, table, True)

Also available in: Unified diff