Revision 4998
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/sql_io.py | ||
---|---|---|
265 | 265 |
sql.insert(db, table, row, cacheable=False, log_level=5) |
266 | 266 |
sql.with_savepoint(db, load_) |
267 | 267 |
|
268 |
if has_row_num: sql.add_row_num(db, table) |
|
268 |
if has_row_num: sql.add_row_num(db, table, sql.pkey_col)
|
|
269 | 269 |
cleanup_table(db, table) |
270 | 270 |
|
271 | 271 |
def put(db, table, row, pkey_=None, row_ct_ref=None): |
Also available in: Unified diff
sql_io.py: import_csv(): Fixed bug where the added row number column needed to be named row_num instead of _row_num to be autodetected as the pkey column (sql.pkey_col) by sql.pkey() and to avoid name collisions with the row number column added in column-based import