couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Kocoloski <kocol...@apache.org>
Subject Re: Integers changed to float in Couch 0.11.0
Date Fri, 09 Apr 2010 18:30:44 GMT
On Apr 9, 2010, at 1:13 PM, Filipe David Manana wrote:

> On Fri, Apr 2, 2010 at 3:37 PM, Paul Davis <paul.joseph.davis@gmail.com>wrote:
> 
>> 
>> Well, there's a limit to what can be stored in an integer remember. I
>> wouldn't really hold my breath for anything larger than 2147483648
>> (2^31). The reason that Futon shows something different is because
>> JavaScript treats all numbers as floats and then at display time it'll
>> not display a fractional part if it's zero.
>> 
>> I'm suprised that it used to work. Can anyone else on 0.10 verify
>> that? I'm not sure if I remember anything changing in the number
>> handling in mochijson or not.
>> 
>> 
> It changed:
> 
> http://code.google.com/p/mochiweb/source/detail?r=43

Yep, at one point we had a forked mochijson2 that preserved the old behavior, but in 

http://github.com/apache/couchdb/commit/3a4fad07cb5097598eefd0cd7f588c5881a61c8f

we switched to using stock mochijson2.  Perhaps we should have been careful to preserve the
old behavior?

Adam


Mime
View raw message