mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-17 14:04:11 +02:00
fix for problem in Table.insert_all on search for columns per chunk of rows
This commit is contained in:
parent
36dc7e3909
commit
929ea75511
3 changed files with 27 additions and 12 deletions
|
|
@ -1886,12 +1886,12 @@ class Table(Queryable):
|
|||
if hash_id:
|
||||
all_columns.insert(0, hash_id)
|
||||
else:
|
||||
all_columns += [
|
||||
column
|
||||
for record in chunk
|
||||
for column in record
|
||||
if column not in all_columns
|
||||
]
|
||||
for record in chunk:
|
||||
all_columns += [
|
||||
column
|
||||
for column in record
|
||||
if column not in all_columns
|
||||
]
|
||||
|
||||
validate_column_names(all_columns)
|
||||
first = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue