Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-1002

N1QL REST example with positional parameters is incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • None
    • query

    Description

      http://developer.couchbase.com/documentation/server/4.1/n1ql/n1ql-rest-api/exnamed.html reports the following

      Request:

      $ curl -v http://localhost:8093/query/service \
      -d 'statement=SELECT text FROM tweets WHERE rating = $r AND when > $date&args=[ 9.5, "1-1-2014"]'

      what is meant is ..&$r=9.5&$date="1-1-2014" rather than ...&args=[ 9.5, "1-1-2014"]

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            matt.carabine Matt Carabine (Inactive)
            marco.greco Marco Greco (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty