Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
- NULL in wrong place causes the insert or delete to not find the
applicable row, blocking the change
  • Loading branch information
BnMcGn committed Jun 26, 2023
1 parent 0a062ea commit e2c5231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
sys.exit("Requires python 3 or greater")

setup(name='vibase',
version='0.0.1',
version='0.0.2',
description='Edit a database table using the VIM editor',
author='Ben McGunigle',
author_email='[email protected]',
Expand Down
2 changes: 1 addition & 1 deletion src/vibase.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def write_csv(fname, conn, table):
headers = [i[0] for i in cursor.description]
writ.writerow(headers)
for row in cursor:
writ.writerow([x if x else "NULL" for x in row])
writ.writerow(["NULL" if x == None else x for x in row])
#writ.writerows(cursor)
return headers

Expand Down

0 comments on commit e2c5231

Please sign in to comment.