couchdb-dev mailing list archives

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


ASF subversion and git services commented on COUCHDB-2622:

Commit 893028883e893d0623cdd7ef25a88b1274a0c43d in couchdb-mango's branch refs/heads/2622-fix-cmp-function
from [~tonysun83]
[;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:
>             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

View raw message