From aae8762c1560a110f11fa8f2524018f20504e40d Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Fri, 19 Nov 2010 12:19:38 +0000 Subject: Add aliases start_key, end_key, start_key_docid and end_key_docid. Closes COUCHDB-949. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1036813 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/design_docs.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'share/www/script/test/design_docs.js') diff --git a/share/www/script/test/design_docs.js b/share/www/script/test/design_docs.js index 831321b8..f2f63841 100644 --- a/share/www/script/test/design_docs.js +++ b/share/www/script/test/design_docs.js @@ -286,6 +286,10 @@ couchTests.design_docs = function(debug) { result = db.view("test/summate", {startkey: 4, endkey: 6}); T(result.rows[0].value == 15); + // test start_key and end_key aliases + result = db.view("test/summate", {start_key: 4, end_key: 6}); + T(result.rows[0].value == 15); + // Verify that a shared index (view def is an exact copy of "summate") // does not confuse the reduce stage result = db.view("test/summate2", {startkey: 4, endkey: 6}); -- cgit v1.2.3