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:13 UTC

[couchdb] 28/31: Fix bug with key encoding values

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 63477944f8cefb5b0e32a44c592e8b96c3eb9ecb
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Tue Jul 23 16:38:15 2019 -0500

    Fix bug with key encoding values
---
 src/couch_views/src/couch_views_encoding.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch_views/src/couch_views_encoding.erl b/src/couch_views/src/couch_views_encoding.erl
index f80ddfe..ef5fed9 100644
--- a/src/couch_views/src/couch_views_encoding.erl
+++ b/src/couch_views/src/couch_views_encoding.erl
@@ -34,7 +34,7 @@ encode(X) ->
 
 
 encode(X, Type) when Type == key; Type == value ->
-    erlfdb_tuple:pack(encode_int(X, value)).
+    erlfdb_tuple:pack(encode_int(X, Type)).
 
 
 decode(Encoded) ->