Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-20906

[CX] Double quotes not working in this statement: "statement=select * from Metadata.`Index`;"

    XMLWordPrintable

Details

    • Untriaged
    • Centos 64-bit
    • Unknown

    Description

      Following curl command is giving error:

      curl -s --data pretty=true --data format=CLEAN_JSON --data-urlencode "statement=select * from Metadata.`Index`;" http://localhost:8095/analytics/service
      -bash: Index: command not found
      {
      "requestID": "293efb9f-08ca-4955-af0f-06d27326a7e1",
      "signature": "*",
      "errors": [

      { "code": "1", "msg": "org.apache.asterix.common.exceptions.AsterixException: Encountered \" \";\" \"; \"\" at line 1, column 24.\nWas expecting one of:\n <QUOTED_STRING> ...\n <IDENTIFIER> ...\n <IDENTIFIER> ...\n <QUOTED_STRING> ...\n <QUOTED_STRING> ...\n <QUOTED_STRING> ...\n " }

      ],
      "status": "fatal",
      "metrics":

      { "elapsedTime": "1.897064ms", "executionTime": "4639704.312252523s", "resultCount": "0", "resultSize": "0" }

      }

      But single quotes work well:
      curl -s --data pretty=true --data format=CLEAN_JSON --data-urlencode 'statement=select * from Metadata.`Index`;' http://localhost:8095/analytics/service

      Attachments

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

        Activity

          People

            till Till Westmann
            Prerna.Manaktala Prerna Manaktala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty