couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: Integers changed to float in Couch 0.11.0
Date Fri, 02 Apr 2010 05:31:13 GMT
On Thu, Apr 1, 2010 at 8:15 PM, Matthew Sinclair-Day <msddsm@gmail.com> wrote:
> On 4/1/10 at 7:22 PM, jchris@gmail.com (J Chris Anderson) wrote:
>
>> On Apr 1, 2010, at 4:14 PM, Matthew Sinclair-Day wrote:
>>
>>> Hi,
>>>
>>> I have upgraded to the 0.11 release and have noticed Couch is
>>> changing integer values into floats. 1270162450695 became
>>> 1270162450695.0.  This is a change from the 0.10.1 release.  Is
>>> there a way to tell Couch not to do this?
>>>
>>
>> You mean in the view engine. The document store will not effect data.
>>
>> The view engine is just JS, which has no distinction between integers and
>> floats.
>>
>> I'm not sure why this would be different from the past.
>>
>> Chris
>>
>
> I'm accessing the document directly by its ID, not by a view.  Does this
> still go through the view engine?  I have confirmed the JSON going into
> couch specifies an integer, and the JSON coming out of couch has it as a
> float.
>
> Matt
>
>

Can you provide a small script or shell session with curl that shows
the problem?

Paul

Mime
View raw message