Permalink
Browse files

Fix NameError when timestamp is used for DateType

  • Loading branch information...
1 parent 82e5010 commit 6767b63da4185c23fd2bff4b6f837aee9155336e @thobbs thobbs committed Jan 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pycassa/marshal.py
View
@@ -71,7 +71,7 @@ def _to_timestamp(v):
if type(v) not in _number_types:
raise TypeError('DateType arguments must be a datetime or timestamp')
- converted = value * 1e6
+ converted = v * 1e6
return converted
def get_composite_packer(typestr):

0 comments on commit 6767b63

Please sign in to comment.