Revision 10838
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sql_io.py | ||
---|---|---|
528 | 528 |
remove_all_rows() |
529 | 529 |
|
530 | 530 |
def ensure_cond(cond, e, passed=False, failed=False): |
531 |
''' |
|
532 |
@param passed at least one row passed the constraint |
|
533 |
@param failed at least one row failed the constraint |
|
534 |
''' |
|
531 | 535 |
if is_literals: # we know the constraint was applied exactly once |
532 | 536 |
if passed: pass |
533 | 537 |
elif failed: remove_all_rows() |
Also available in: Unified diff
lib/sql_io.py: ensure_cond(): documented meaning of passed, failed params (at least one row passed/failed the constraint)