Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
Fixing short rows
Browse files Browse the repository at this point in the history
  • Loading branch information
vegitron committed Mar 17, 2017
1 parent 962d721 commit 70e6bbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sqlshare_rest/backend/pg.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,9 @@ def _load_table_copy(self, table_name, parser, upload, user):
row.append("\\N")
else:
value = row[index]
if col_type == "int":
if value is None:
row[index] = "\\N"
elif col_type == "int":
try:
int(value)
except Exception:
Expand Down

0 comments on commit 70e6bbc

Please sign in to comment.