Revision 3418
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_io.py | ||
---|---|---|
318 | 318 |
pkeys_table_exists_ref[0] = True |
319 | 319 |
|
320 | 320 |
limit_ref = [None] |
321 |
def mk_main_select(joins, cols): |
|
322 |
return sql.mk_select(db, joins, cols, limit=limit_ref[0], order_by=None) |
|
323 |
|
|
321 | 324 |
insert_in_table = in_table |
322 | 325 |
insert_in_tables = [insert_in_table] |
323 |
conds = set() |
|
324 | 326 |
join_cols = sql_gen.ColDict(db, out_table) |
325 |
def mk_main_select(joins, cols): |
|
326 |
conds_ = [(sql_gen.with_table(k, insert_in_table), v) for k, v in conds] |
|
327 |
return sql.mk_select(db, joins, cols, conds_, limit=limit_ref[0], |
|
328 |
order_by=None) |
|
329 | 327 |
|
330 | 328 |
exc_strs = set() |
331 | 329 |
def log_exc(e): |
Also available in: Unified diff
sql_io.py: put_table(): Removed no longer used conds var (invalid rows are removed from the in_table using sql.delete() instead of being filtered out in the main select)