From dev-return-12251-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Sat Oct 09 19:45:29 2010 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 84351 invoked from network); 9 Oct 2010 19:45:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Oct 2010 19:45:28 -0000 Received: (qmail 28308 invoked by uid 500); 9 Oct 2010 19:45:22 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 28247 invoked by uid 500); 9 Oct 2010 19:45:22 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 28217 invoked by uid 99); 9 Oct 2010 19:45:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 19:45:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 19:45:19 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o99Jiw3B016626 for ; Sat, 9 Oct 2010 19:44:58 GMT Message-ID: <9704089.56681286653498390.JavaMail.jira@thor> Date: Sat, 9 Oct 2010 15:44:58 -0400 (EDT) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-724) Big numbers changed to decimals In-Reply-To: <1674586933.660951270221987704.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-724?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Joseph Davis updated COUCHDB-724: -------------------------------------- Skill Level: Regular Contributors Level (Easy to Medium) > Big numbers changed to decimals > ------------------------------- > > Key: COUCHDB-724 > URL: https://issues.apache.org/jira/browse/COUCHDB-724 > Project: CouchDB > Issue Type: Bug > Affects Versions: 0.11 > Environment: Mac OS X running CouchDBX-0.11.0-R13B04-64bit-Snow-L= eopard > Reporter: Matthew Sinclair-Day > > After upgrading from Couch 0.10.1 to 0.11.0, big integers are now being r= eturned 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}= ' > {"ok":true,"id":"8d211c89d80d14972af7cb93e71754bc","rev":"1-fce9e6cc4e728= 66f75aeadbaed1a65c9"} > curl http://localhost:5984/msdtest/8d211c89d80d14972af7cb93e71754bc > {"_id":"8d211c89d80d14972af7cb93e71754bc","_rev":"1-fce9e6cc4e72866f75aea= dbaed1a65c9","num":123456789123456780.0} > In Futon, the 'num' value does not have a decimal. > It seems like the problem occurs with large numbers. =C2=A0Here's another= curl > where the num is not made into a decimal: > curl -X POST http://localhost:5984/msdtest -d '{"num":123456789}' > {"ok":true,"id":"8d211c89d80d14972af7cb93e7175daf","rev":"1-039a59b36e40b= 4216eac91872eed4645"} > curl http://localhost:5984/msdtest/8d211c89d80d14972af7cb93e7175daf > {"_id":"8d211c89d80d14972af7cb93e7175daf","_rev":"1-039a59b36e40b4216eac9= 1872eed4645","num":123456789} > Here's a session from 0.10.1 demonstrating the problem did not exist in t= hat release: > curl -X POST http://localhost:5984/msdtest -d '{"num":123456789123456789}= ' > {"ok":true,"id":"fcd6d8fca421023581a608758a0abe35","rev":"1-fce9e6cc4e728= 66f75aeadbaed1a65c9"} > curl http://localhost:5984/msdtest/fcd6d8fca421023581a608758a0abe35 > {"_id":"fcd6d8fca421023581a608758a0abe35","_rev":"1-fce9e6cc4e72866f75aea= dbaed1a65c9","num":123456789123456789} --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.