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

Query engine errors on extra whitespace at end of query

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 4.0.0
    • query
    • Security Level: Public
    • None
    • Untriaged
    • Unknown

    Description

      Build 3531

      Trying to send a query with an extra space at the end after the ';' gives an error that is rather hard to troubleshoot (since you can't usually see the extra space when it's in a file):
      curl http://Administrator:password@10.0.0.1:8093/query -d "statement=select * from ods; "
      {
      "requestID": "16146df7-08ed-4588-9411-a6c8b0151c4e",
      "errors": [

      { "code": 1065, "msg": "Unrecognized parameter in request: " }

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

      { "elapsedTime": "92.356µs", "executionTime": "91.876µs", "resultCount": 0, "resultSize": 0, "errorCount": 1 }

      }

      Attachments

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

        Activity

          People

            perry Perry Krug
            perry Perry Krug
            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