Skip to content

Commit

Permalink
Fixed handling of long numbers in sqlify. closes webpy#213. (tx cjrolo)
Browse files Browse the repository at this point in the history
  • Loading branch information
anandology committed Mar 7, 2013
1 parent 0fbe0da commit 2010d39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ def sqlify(obj):
return "'t'"
elif obj is False:
return "'f'"
elif isinstance(obj, long):
return str(obj)
elif datetime and isinstance(obj, datetime.datetime):
return repr(obj.isoformat())
else:
Expand Down

0 comments on commit 2010d39

Please sign in to comment.