Revision 5527
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/sql.py | ||
---|---|---|
703 | 703 |
conds = list(conds) # don't modify input! (list() copies input) |
704 | 704 |
assert limit == None or isinstance(limit, (int, long)) |
705 | 705 |
assert start == None or isinstance(start, (int, long)) |
706 |
if limit == 0: order_by = None |
|
706 | 707 |
if order_by is order_by_pkey: |
707 | 708 |
order_by = None |
708 | 709 |
if table0 != None and distinct_on == []: |
Also available in: Unified diff
sql.py: mk_select(): Set order_by to None if limit == 0