diff options
author | Paul Joseph Davis <davisp@apache.org> | 2009-04-18 16:16:35 +0000 |
---|---|---|
committer | Paul Joseph Davis <davisp@apache.org> | 2009-04-18 16:16:35 +0000 |
commit | 5442bdb4f36f6079c5e63b5ddd8486acd032e5ad (patch) | |
tree | bd29dfa9c194aa21eea45cdcf8289729fafdd3fb /share/www/script/test | |
parent | 194975152f9c7d3d6f0c35c44a25415bc0fbafb6 (diff) |
Fixes COUCHDB-322
Specifying reduce=true now returns a 400 error when the view has no reduce
function.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@766347 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test')
-rw-r--r-- | share/www/script/test/view_errors.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/share/www/script/test/view_errors.js b/share/www/script/test/view_errors.js index aa698f4d..60ccca59 100644 --- a/share/www/script/test/view_errors.js +++ b/share/www/script/test/view_errors.js @@ -81,6 +81,14 @@ couchTests.view_errors = function(debug) { } try { + db.view("test/no_reduce", {reduce: true}); + T(0 == 1); + } catch(e) { + T(db.last_req.status == 400); + T(e.error == "query_parse_error"); + } + + try { db.view("test/with_reduce", {group: true, reduce: false}); T(0 == 1); } catch(e) { |