Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 64584 invoked from network); 2 Apr 2010 14:38:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Apr 2010 14:38:02 -0000 Received: (qmail 99293 invoked by uid 500); 2 Apr 2010 05:32:01 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 99266 invoked by uid 500); 2 Apr 2010 05:32:01 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 99258 invoked by uid 99); 2 Apr 2010 05:32:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Apr 2010 05:32:01 +0000 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=AWL,FREEMAIL_FROM,FREEMAIL_REPLY,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.217.211 as permitted sender) Received: from [209.85.217.211] (HELO mail-gx0-f211.google.com) (209.85.217.211) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Apr 2010 05:31:55 +0000 Received: by gxk3 with SMTP id 3so1673632gxk.13 for ; Thu, 01 Apr 2010 22:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:received:message-id:subject:to:content-type :content-transfer-encoding; bh=b0oRvBvxbiCmwxqvprQmwBVb8nUZrLqpWMndiuizSqs=; b=iAdn+VqjMcYnn5BSEjFv0rqCt0UJxZUqygPaSNdju0SMjDLz/QCaMU6ftghzDsVQ0j +93VJrdHEuOobpQBuNpmQ/XUTC/lBlROFmZk0pFPltZ8m6NGXb273y+KYnmXqZoc3BRn maOrrJl1clLsB34oKN9iRohJ4T4oYCJ4BaFas= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=iiqxMOK3zFnAs+F1eoMCMjWazrZwoihH6S10f/KQQfmJZ06o4/QEWLMqYZFtdZsdva QqD5C7mzDY5qklFu0mjDmgKndqukP5146tIjeHr6r2sIpbSWz1fH8vR08f2RQf5yKbxD 04mEqhkPqSUIUJS7hdtscHcrZR5POyVbavcKk= MIME-Version: 1.0 Received: by 10.100.112.19 with HTTP; Thu, 1 Apr 2010 22:31:13 -0700 (PDT) In-Reply-To: <4bb53734.9653f10a.4c8d.04e5@mx.google.com> References: <4bb53734.9653f10a.4c8d.04e5@mx.google.com> From: Paul Davis Date: Fri, 2 Apr 2010 01:31:13 -0400 Received: by 10.100.243.15 with SMTP id q15mr4433006anh.233.1270186293757; Thu, 01 Apr 2010 22:31:33 -0700 (PDT) Message-ID: Subject: Re: Integers changed to float in Couch 0.11.0 To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Apr 1, 2010 at 8:15 PM, Matthew Sinclair-Day wro= te: > 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. =A0This is a change from the 0.10.1 release. =A0Is >>> 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 an= d >> 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. =A0Does thi= s > still go through the view engine? =A0I 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