Project

General

Profile

« Previous | Next » 

Revision 5523

sql.select() calls: Removed order_by=None everywhere that a stable row order is required (i.e. consistent between selects, or consistent between table transformations). This causes several tests to return different inserted row counts, because the input table is now being accessed in pkey order instead of in table order. This fixes a bug where tables with more rows than ~100 would return different results for repeated calls of the same non-ordered select.

View differences:

map
343 343
            if by_col: limit = 0 # only fetch column names
344 344
            else: limit = n
345 345
            cur = sql.select(in_db, table, limit=limit, start=start,
346
                order_by=None, cacheable=False)
346
                cacheable=False)
347 347
            col_names = list(sql.col_names(cur))
348 348
            
349 349
            if by_col:

Also available in: Unified diff