Insert all columns for every chunk

This commit is contained in:
Simon Wiles 2020-08-27 13:05:59 -07:00
commit 3901f43c6a

View file

@ -1074,6 +1074,14 @@ class Table(Queryable):
all_columns = list(sorted(all_columns))
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
]
validate_column_names(all_columns)
first = False
# values is the list of insert data that is passed to the