diff options
author | John Christopher Anderson <jchris@apache.org> | 2008-10-21 20:06:37 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2008-10-21 20:06:37 +0000 |
commit | 7b27c98889ec0acfcaa3b798b1879e7749407a55 (patch) | |
tree | 3054e8f4851b3d79bffc5a311011379c82ea8c4f /share | |
parent | 9866203c3c0bff9cd972df09624e5647cfc4e9be (diff) |
fix for COUCHDB-139 keys available when reduce=false
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@706744 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r-- | share/www/script/couch_tests.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js index 5ff4ad40..a7844bdc 100644 --- a/share/www/script/couch_tests.js +++ b/share/www/script/couch_tests.js @@ -1311,6 +1311,10 @@ var tests = { T(e.error == "query_parse_error"); } + // Test that a map & reduce containing func support keys when reduce=false + resp = db.view("test/summate", {reduce: false}, keys); + T(resp.rows.length == 5); + // Check that limiting by startkey_docid and endkey_docid get applied // as expected. var curr = db.view("test/multi_emit", {startkey_docid: 21, endkey_docid: 23}, [0, 2]).rows; |