Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 91226 invoked from network); 14 Dec 2009 11:31:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Dec 2009 11:31:42 -0000 Received: (qmail 4666 invoked by uid 500); 14 Dec 2009 11:31:42 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 4553 invoked by uid 500); 14 Dec 2009 11:31:40 -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 4539 invoked by uid 99); 14 Dec 2009 11:31:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Dec 2009 11:31:40 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Dec 2009 11:31:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 137FC234C498 for ; Mon, 14 Dec 2009 03:31:18 -0800 (PST) Message-ID: <455229989.1260790278064.JavaMail.jira@brutus> Date: Mon, 14 Dec 2009 11:31:18 +0000 (UTC) From: =?utf-8?Q?Karel_Mina=C5=99=C3=ADk_=28JIRA=29?= To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-599) `head.total_rows` returns empty in a _list function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 `head.total_rows` returns empty in a _list function --------------------------------------------------- Key: COUCHDB-599 URL: https://issues.apache.org/jira/browse/COUCHDB-599 Project: CouchDB Issue Type: Bug Components: Database Core, Test Suite Affects Versions: 0.10, 0.11 Environment: Mac OS X 10.5.8, Mac Book Air, CouchDB 0.10.0 (mac po= rts) and trunk Reporter: Karel Mina=C5=99=C3=ADk In a _list function defined like this: function (head, req) { return 'Total: ' + head.total_rows; } the `head.total_rows` is undefined.=20 I have created a test case for the issue in this patch (against Git repo at= github.com/apache/couchdb): --> http://gist.github.com/255972#file_couchdb_head_total_rows_in_list__fai= l.diff See the map/reduce and list function definition in the gist, also the full = db dump is included. This fails fo me on CouchDB 0.10.0 and 0.11.0b77473d79-git. There are tests for `head.total_rows` commented out in In the test cases (l= ist_views.js, see http://github.com/apache/couchdb/blob/trunk/share/www/scr= ipt/test/list_views.js#L65-68 and http://github.com/apache/couchdb/blob/tru= nk/share/www/script/test/list_views.js#L265) --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.