Revision 2650
Added by Aaron Marcuse-Kubitza over 12 years ago
sql.py | ||
---|---|---|
477 | 477 |
|
478 | 478 |
# Parse other params |
479 | 479 |
if conds == None: conds = [] |
480 |
elif isinstance(conds, dict): conds = conds.items()
|
|
480 |
elif dicts.is_dict(conds): conds = conds.items()
|
|
481 | 481 |
conds = list(conds) # don't modify input! (list() copies input) |
482 | 482 |
assert limit == None or type(limit) == int |
483 | 483 |
assert start == None or type(start) == int |
Also available in: Unified diff
sql.py: mk_select(): conds: Support dict-like objects other than dict itself (such as sql_gen.ColDict)