couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Sinclair-Day (JIRA)" <>
Subject [jira] Created: (COUCHDB-724) Big numbers changed to decimals
Date Fri, 02 Apr 2010 15:26:27 GMT
Big numbers changed to decimals

                 Key: COUCHDB-724
             Project: CouchDB
          Issue Type: Bug
    Affects Versions: 0.11
         Environment: Mac OS X running CouchDBX-0.11.0-R13B04-64bit-Snow-Leopard
            Reporter: Matthew Sinclair-Day

After upgrading from Couch 0.10.1 to 0.11.0, big integers are now being returned by couch
as decimals.  This is a change from the previous release.

Here's a curl session demonstrating the problem:

curl -X POST http://localhost:5984/msdtest -d '{"num":123456789123456789}'

curl http://localhost:5984/msdtest/8d211c89d80d14972af7cb93e71754bc

In Futon, the 'num' value does not have a decimal.

It seems like the problem occurs with large numbers.  Here's another curl
where the num is not made into a decimal:

curl -X POST http://localhost:5984/msdtest -d '{"num":123456789}'

curl http://localhost:5984/msdtest/8d211c89d80d14972af7cb93e7175daf

Here's a session from 0.10.1 demonstrating the problem did not exist in that release:

curl -X POST http://localhost:5984/msdtest -d '{"num":123456789123456789}'

curl http://localhost:5984/msdtest/fcd6d8fca421023581a608758a0abe35

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message