summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Garnaat <mitch@garnaat.com>2012-02-13 08:55:24 -0800
committerMitch Garnaat <mitch@garnaat.com>2012-02-13 08:55:24 -0800
commit3bd1be24366f685255d80035a29576cf5ea61d4c (patch)
tree1854c3729b80ceb82d33368b5a16b93178fd87ba
parentadeb715194a9d0e78d0e5f41638782c68c0071f8 (diff)
downloadboto-3bd1be24366f685255d80035a29576cf5ea61d4c.tar.gz
Fixed a problem with zero-valued numeric range keys. Closes #576.
-rw-r--r--boto/dynamodb/layer2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/boto/dynamodb/layer2.py b/boto/dynamodb/layer2.py
index 45f13459..8f325bef 100644
--- a/boto/dynamodb/layer2.py
+++ b/boto/dynamodb/layer2.py
@@ -280,7 +280,7 @@ class Layer2(object):
msg = 'Hashkey must be of type: %s' % schema.hash_key_type
raise TypeError(msg)
dynamodb_key['HashKeyElement'] = dynamodb_value
- if range_key:
+ if range_key is not None:
dynamodb_value = self.dynamize_value(range_key)
if dynamodb_value.keys()[0] != schema.range_key_type:
msg = 'RangeKey must be of type: %s' % schema.range_key_type