couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tonysu...@apache.org
Subject couchdb-mango git commit: Use different comparison function
Date Wed, 25 Feb 2015 17:00:49 GMT
Repository: couchdb-mango
Updated Branches:
  refs/heads/master 698e3490e -> 893028883


Use different comparison function

Our mango_json:cmp/2 function used couch_ejson_compare:less_json.
That function returned a boolean value, but we need a number.
Documents were not returned and tests were failing. Changed function
to use couch_ejson_compare:less instead.

Fixes COUCHDB-2622


Project: http://git-wip-us.apache.org/repos/asf/couchdb-mango/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mango/commit/89302888
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mango/tree/89302888
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mango/diff/89302888

Branch: refs/heads/master
Commit: 893028883e893d0623cdd7ef25a88b1274a0c43d
Parents: 698e349
Author: Tony Sun <tony.sun@cloudant.com>
Authored: Tue Feb 24 23:19:01 2015 -0800
Committer: Tony Sun <tony.sun@cloudant.com>
Committed: Tue Feb 24 23:19:01 2015 -0800

----------------------------------------------------------------------
 src/mango_json.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/89302888/src/mango_json.erl
----------------------------------------------------------------------
diff --git a/src/mango_json.erl b/src/mango_json.erl
index 2c602b6..9584c2d 100644
--- a/src/mango_json.erl
+++ b/src/mango_json.erl
@@ -49,7 +49,7 @@ cmp(?MAX_VAL, _) ->
 cmp(_, ?MAX_VAL) ->
     -1;
 cmp(A, B) ->
-    couch_ejson_compare:less_json(A, B).
+    couch_ejson_compare:less(A, B).
 
 
 cmp_raw(?MIN_VAL, ?MIN_VAL) ->


Mime
View raw message