Permalink
Browse files

Fixed handling of long numbers in sqlify. closes #213. (tx cjrolo)

  • Loading branch information...
1 parent 0fbe0da commit 2010d39b179a5912ee40221066d843447e84bb1c @anandology anandology committed Mar 7, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 web/db.py
View
@@ -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:

0 comments on commit 2010d39

Please sign in to comment.