Unable to assign decimal values to 'number' type attributes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MagnetoDB |
New
|
Undecided
|
Unassigned |
Bug Description
Data model @ http://
states about the 'Number' data type as "Numbers are positive or negative exact-value decimals and integers. "
But when we try to assign a decimal value to an attribute of 'Number' data type, the below exception is thrown:
<snip>
>>> c.put_item('trust', {'expected': {...}, 'item': {..., 'count': {'N': 4.0}, ...}})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/
return self.post(
File "/usr/local/
headers=
File "/usr/local/
resp, replybody = self.httpclient
File "/usr/local/
**kwargs)
File "/usr/local/
resp, body = self._time_
File "/usr/local/
resp, body = self.request(url, method, **kwargs)
File "/usr/local/
raise exceptions.
magnetodbclient
>>>
</snip>
Works fine when we assign an integer though.
<snip2>
>>> c.put_item('trust', {'expected': {...}, 'item': {..., 'count': {'N': 4}, ...}})
{}
>>>
</snip2>