Revision 3288
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_io.py | ||
---|---|---|
493 | 493 |
[sql_gen.Col(in_pkey, full_in_table), |
494 | 494 |
sql_gen.NamedCol(out_pkey, default)]) |
495 | 495 |
# otherwise, there is already an entry for every row |
496 |
sql.empty_temp(db, full_in_table) |
|
497 | 496 |
|
498 |
assert sql.table_row_count(db, into) == sql.table_row_count(db, in_table) |
|
497 |
assert (sql.table_row_count(db, into) |
|
498 |
== sql.table_row_count(db, full_in_table)) |
|
499 | 499 |
|
500 |
sql.empty_temp(db, insert_in_tables) |
|
500 |
sql.empty_temp(db, insert_in_tables+[full_in_table])
|
|
501 | 501 |
|
502 | 502 |
srcs = [] |
503 | 503 |
if is_func: srcs = sql_gen.cols_srcs(in_cols) |
Also available in: Unified diff
sql_io.py: put_table(): Use full_in_table in the into table row count assertion, since in_table may have rows deleted