Revision 5375
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_io.py | ||
---|---|---|
440 | 440 |
sql.run_query_into(db, query, into=into, add_pkey_=True, **kw_args) |
441 | 441 |
pkeys_table_exists_ref[0] = True |
442 | 442 |
|
443 |
limit_ref = [None] |
|
444 | 443 |
def mk_main_select(joins, cols): |
445 |
return sql.mk_select(db, joins, cols, limit=limit_ref[0], order_by=None)
|
|
444 |
return sql.mk_select(db, joins, cols, order_by=None) |
|
446 | 445 |
|
447 | 446 |
if is_literals: insert_in_table = None |
448 | 447 |
else: |
... | ... | |
460 | 459 |
remove_all_rows() |
461 | 460 |
else: exc_strs.add(e_str) |
462 | 461 |
|
462 |
limit_ref = [None] |
|
463 | 463 |
def remove_all_rows(): |
464 | 464 |
log_debug('Ignoring all rows') |
465 | 465 |
limit_ref[0] = 0 # just create an empty pkeys table |
Also available in: Unified diff
sql_io.py: put_table(): mk_main_select(): Removed setting limit to limit_ref0, because an empty pkeys table is no longer created when ignoring all rows