couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-2622) Comparison function returns boolean rather than number.
Date Wed, 25 Feb 2015 07:23:04 GMT

    [ 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)

Mime
View raw message