Revision 3129
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
581 | 581 |
if conds == None: conds = [] |
582 | 582 |
elif dicts.is_dict(conds): conds = conds.items() |
583 | 583 |
conds = list(conds) # don't modify input! (list() copies input) |
584 |
assert limit == None or type(limit) == int
|
|
585 |
assert start == None or type(start) == int
|
|
584 |
assert limit == None or isinstance(limit, (int, long))
|
|
585 |
assert start == None or isinstance(start, (int, long))
|
|
586 | 586 |
if order_by is order_by_pkey: |
587 | 587 |
if distinct_on != []: order_by = None |
588 | 588 |
else: order_by = pkey(db, table0, recover=True) |
Also available in: Unified diff
sql.py: mk_select(): Also support limit and start values of type long