You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/02/25 08:23:04 UTC

[jira] [Commented] (COUCHDB-2622) Comparison function returns boolean rather than number.

    [ https://issues.apache.org/jira/browse/COUCHDB-2622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14336145#comment-14336145 ] 

ASF subversion and git services commented on COUCHDB-2622:
----------------------------------------------------------

Commit 893028883e893d0623cdd7ef25a88b1274a0c43d in couchdb-mango's branch refs/heads/2622-fix-cmp-function from [~tonysun83]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-mango.git;h=8930288 ]

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


> Comparison function returns boolean rather than number.
> -------------------------------------------------------
>
>                 Key: COUCHDB-2622
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2622
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Mango
>            Reporter: Tony Sun
>
> In mango_json:cmp/2, we call couch_ejson_compare:less_json(A, B) which returns a boolean when we require a number. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)