1
0
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:
Colin Dellow
2018-03-18 17:03:46 -04:00
parent d430a45e41
commit e2af2a07a4
28 changed files with 405 additions and 405 deletions

View File

@@ -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'