mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-19 06:54:25 +02:00
Guard transform when --detect-types CSV has only a header row (closes #702)
This commit is contained in:
parent
8d74ffc932
commit
633414a556
2 changed files with 16 additions and 1 deletions
|
|
@ -1176,7 +1176,7 @@ def insert_upsert_implementation(
|
|||
)
|
||||
else:
|
||||
raise
|
||||
if tracker is not None:
|
||||
if tracker is not None and db.table(table).exists():
|
||||
db.table(table).transform(types=tracker.types)
|
||||
|
||||
# Clean up open file-like objects
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue