Revision 3745
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_io.py | ||
---|---|---|
476 | 476 |
|
477 | 477 |
# Handle unrecoverable errors in a special case |
478 | 478 |
if limit_ref[0] == 0: |
479 |
assert not has_joins |
|
480 |
|
|
481 | 479 |
if is_literals: |
482 | 480 |
default = sql_gen.remove_col_rename(default) |
483 | 481 |
log_debug('Returning default: '+strings.as_tt(repr(default))) |
... | ... | |
485 | 483 |
elif is_function: pass # empty pkeys table already created |
486 | 484 |
else: |
487 | 485 |
log_debug('Creating an empty output pkeys table') |
486 |
has_joins = False # use the no-joins case |
|
488 | 487 |
cur = sql.run_query_into(db, sql.mk_select(db, out_table, |
489 | 488 |
[out_pkey], order_by=None, limit=0), into=insert_out_pkeys) |
490 | 489 |
|
Also available in: Unified diff
sql_io.py: put_table(): Ignoring all rows on unrecoverable errors: Also support the case where has_joins == True, by setting it to False so that the no-joins case is effectively used