You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2019/07/23 21:55:16 UTC

[couchdb] 31/31: Encode start/end keys as keys

This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch prototype/views
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 445a40920042e2a79ff8c23be2deab6c361fa0db
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Tue Jul 23 16:54:24 2019 -0500

    Encode start/end keys as keys
---
 src/couch_views/src/couch_views_reader.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/couch_views/src/couch_views_reader.erl b/src/couch_views/src/couch_views_reader.erl
index 8bbe1fc..1d9d92a 100644
--- a/src/couch_views/src/couch_views_reader.erl
+++ b/src/couch_views/src/couch_views_reader.erl
@@ -139,7 +139,7 @@ mrargs_to_fdb_options(Args) ->
     } = Args,
 
     StartKey1 = if StartKey0 == undefined -> undefined; true ->
-        couch_views_encoding:encode(StartKey0)
+        couch_views_encoding:encode(StartKey0, key)
     end,
 
     StartKeyOpts = case {StartKey1, StartKeyDocId} of
@@ -150,7 +150,7 @@ mrargs_to_fdb_options(Args) ->
     end,
 
     EndKey1 = if EndKey0 == undefined -> undefined; true ->
-        couch_views_encoding:encode(EndKey0)
+        couch_views_encoding:encode(EndKey0, key)
     end,
 
     EndKeyOpts = case {EndKey1, EndKeyDocId, Direction} of