Revision 3473
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_io.py | ||
---|---|---|
393 | 393 |
|
394 | 394 |
# Do inserts and selects |
395 | 395 |
while True: |
396 |
has_joins = join_cols != {} |
|
397 |
|
|
396 | 398 |
if limit_ref[0] == 0: # special case |
399 |
assert not has_joins |
|
400 |
|
|
397 | 401 |
if is_literals: return None |
398 | 402 |
log_debug('Creating an empty output pkeys table') |
399 | 403 |
cur = sql.run_query_into(db, sql.mk_select(db, out_table, |
400 | 404 |
[out_pkey], order_by=None, limit=0), into=insert_out_pkeys) |
401 | 405 |
break # don't do main case |
402 | 406 |
|
403 |
has_joins = join_cols != {} |
|
404 |
|
|
405 | 407 |
log_debug('Trying to insert new rows') |
406 | 408 |
|
407 | 409 |
# Prepare to insert new rows |
Also available in: Unified diff
sql_io.py: Creating an empty output pkeys table: Assert that there are no join columns, so that the input pkeys table will be created correctly for the empty output pkeys table