couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nolan Lawson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COUCHDB-2614) Selectors with {$eq: 'foo', $gte: 'foo'} cause 500 error
Date Mon, 23 Feb 2015 00:48:11 GMT
Nolan Lawson created COUCHDB-2614:
-------------------------------------

             Summary: Selectors with {$eq: 'foo', $gte: 'foo'} cause 500 error
                 Key: COUCHDB-2614
                 URL: https://issues.apache.org/jira/browse/COUCHDB-2614
             Project: CouchDB
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: Mango
            Reporter: Nolan Lawson


Steps to repro in curl:

{code}
MYDB=http://whatever.cloudant.com/somedb
curl "$MYDB/_bulk_docs" -H 'Content-Type: application/json' --data-binary '{"new_edits":true,"docs":[{"name":"mario","_id":"mario","rank":5,"series":"mario","debut":1981},{"name":"jigglypuff","_id":"puff","rank":8,"series":"pokemon","debut":1996},{"name":"link","rank":10,"_id":"link","series":"zelda","debut":1986},{"name":"donkey
kong","rank":7,"_id":"dk","series":"mario","debut":1981},{"name":"pikachu","series":"pokemon","_id":"pikachu","rank":1,"debut":1996},{"name":"captain
falcon","_id":"falcon","rank":4,"series":"f-zero","debut":1990},{"name":"luigi","rank":11,"_id":"luigi","series":"mario","debut":1983},{"name":"fox","_id":"fox","rank":3,"series":"star
fox","debut":1993},{"name":"ness","rank":9,"_id":"ness","series":"earthbound","debut":1994},{"name":"samus","rank":12,"_id":"samus","series":"metroid","debut":1986},{"name":"yoshi","_id":"yoshi","rank":6,"series":"mario","debut":1990},{"name":"kirby","_id":"kirby","series":"kirby","rank":2,"debut":1992}]}'
curl "$MYDB/_index" -H 'Content-Type: application/json' --data-binary '{"index":{"fields":["series"]}}'
curl "$MYDB/_find" -H 'Content-Type: application/json' --data-binary '{"selector":{"$and":[{"series":{"$gte":"mario"}},{"series":{"$eq":"f-zero"}},{"series":{"$eq":"mario"}}]},"fields":["_id"]}'
{code}

The error I get back is:

{code:javascript}
{"error":"function_clause","reason":null,"ref":2609331215}
{code}



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

Mime
View raw message