Revision 2378
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/sql.py | ||
---|---|---|
776 | 776 |
run_query_into(db, query, params, into_ref=pkeys_ref) |
777 | 777 |
pkeys_table_exists_ref[0] = True |
778 | 778 |
|
779 |
conds = {}
|
|
779 |
conds = []
|
|
780 | 780 |
distinct_on = [] |
781 | 781 |
def mk_main_select(joins, cols): |
782 | 782 |
return mk_select(db, joins, cols, conds, distinct_on, limit=limit, |
... | ... | |
786 | 786 |
db.log_debug('Caught exception: '+exc.str_(e, first_line_only=True)) |
787 | 787 |
def ignore(in_col, value): |
788 | 788 |
db.log_debug('Ignoring rows with '+str(in_col)+' = '+repr(value)) |
789 |
assert in_col not in conds # avoid infinite loops |
|
790 |
conds[in_col] = sql_gen.CompareCond(value, '!=') |
|
789 |
cond = (in_col, sql_gen.CompareCond(value, '!=')) |
|
790 |
assert cond not in conds # avoid infinite loops |
|
791 |
conds.append(cond) |
|
791 | 792 |
|
792 | 793 |
# Do inserts and selects |
793 | 794 |
join_cols = {} |
Also available in: Unified diff
sql.py: put_table(): Made conds a list so that there can be multiple conditions on the same column