mirror of
https://github.com/cldellow/sqlite-parquet-vtable.git
synced 2025-09-16 22:49:59 +00:00
Make rowid start from 1, not 0
Unclear whether this is strictly required, but I'm going to start using SQLite as an oracle, and it'll be simpler if our rowids match theirs.
This commit is contained in:
@@ -102,7 +102,7 @@ def write_csv(file_name, rows):
|
||||
print('Writing {}'.format(file_name))
|
||||
with open(file_name, 'w') as f:
|
||||
for rowid, row in enumerate(rows):
|
||||
line = str(rowid)
|
||||
line = str(rowid + 1)
|
||||
for col in row:
|
||||
line += '\t'
|
||||
|
||||
|
Reference in New Issue
Block a user