couchdb-mango git commit: Use different comparison function

2015-02-24 Thread tonysun83
Repository: couchdb-mango
Updated Branches:
  refs/heads/2622-fix-cmp-function [created] 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/2622-fix-cmp-function
Commit: 893028883e893d0623cdd7ef25a88b1274a0c43d
Parents: 698e349
Author: Tony Sun 
Authored: Tue Feb 24 23:19:01 2015 -0800
Committer: Tony Sun 
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) ->



couchdb-mango git commit: Use different comparison function

2015-02-25 Thread tonysun83
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 
Authored: Tue Feb 24 23:19:01 2015 -0800
Committer: Tony Sun 
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) ->