Fix logic error in insert_many
This commit is contained in:
parent
82c6cdc990
commit
6874889591
@ -139,7 +139,7 @@ class Table(object):
|
||||
chunk.append(row)
|
||||
|
||||
# Insert when chunk_size is fulfilled or this is the last row
|
||||
if len(chunk) == chunk_size or index == len(row) - 1:
|
||||
if len(chunk) == chunk_size or index == len(rows) - 1:
|
||||
chunk = pad_chunk_columns(chunk, columns)
|
||||
self.table.insert().execute(chunk)
|
||||
chunk = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user