Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 14407 invoked from network); 11 May 2010 18:59:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 May 2010 18:59:19 -0000 Received: (qmail 27643 invoked by uid 500); 11 May 2010 18:59:18 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 27561 invoked by uid 500); 11 May 2010 18:59:18 -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 27547 invoked by uid 99); 11 May 2010 18:59:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 18:59:18 +0000 X-ASF-Spam-Status: No, hits=-0.2 required=10.0 tests=AWL,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [66.46.182.54] (HELO relay.ihostexchange.net) (66.46.182.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 18:59:13 +0000 Received: from VMBX122.ihostexchange.net ([192.168.40.2]) by HUB104.ihostexchange.net ([66.46.182.54]) with mapi; Tue, 11 May 2010 14:58:49 -0400 From: Mike Keen To: "user@couchdb.apache.org" Date: Tue, 11 May 2010 14:58:36 -0400 Subject: Re: Strange integer anomaly in Erlang view Thread-Topic: Strange integer anomaly in Erlang view Thread-Index: AcrxO/yHOtXGBmnlSduXoEaHP6gt3A== Message-ID: References: <0B8367C6-CECE-48FB-AE62-1C270DE70221@visiture.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 You're right. In the value column, the id shows up as 50573744 which is the= correct value. In the key column, it shows up as 53518364. On May 11, 2010, at 2:44 PM, Randall Leeds wrote: > On Tue, May 11, 2010 at 11:40, Jarrod Roberson w= rote: >> On Tue, May 11, 2010 at 2:31 PM, Mike Keen wrote: >>=20 >>> I guess I'm confused as to why JavaScript is ever even involved when >>> writing views in Erlang. Excuse my ignorance, but does all JSON go thro= ugh >>> it? >>>=20 >>> Mike >>>=20 >>> read all the comments to that bug report, it is the JSON parser that >> conforms to the limitations of JavaScript. And everything goes thru the = JSON >> parser. >>=20 >=20 > I think we're missing the point. Even if the erlang JSON parser > conforms to JSON's notion of numbers then I'd expect the id to be > transformed the same way for both the key and the value. >=20 > Maybe the key is implicitly treated as a string? Mike, which is the > "correct" value for the id?