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

[CX] Difference in result of select on escaped quote strings from n1ql

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      Hi Yingyi
       
      I couldnt get hold of query team to understand this difference, please go ahead and assign to them if think in not a CBAS issue.
       
      Query issued: 
      SELECT \"aBlHNSvkjB\";
       
      Result in cbas:
      prernamanaktala@couchbases-MacBook-Pro-2 testrunner-new (master) $ curl -s --data pretty=true  --data-urlencode "statement@file.txt" http://172.23.107.182:8095/analytics/service
      {
      	"requestID": "e94e9d20-d65f-49c3-9420-7cfe385fc1e5",
      	"signature": "*",
      	"errors": [{ 
      	"code": "1",
      	"msg": "Lexical error at line 1, column 8.  Encountered: \"\\\\\" (92), after : \"\""
      	}],
      	"status": "fatal",
      	"metrics": {
      		"elapsedTime": "1.827676ms",
      		"executionTime": "0ns",
      		"resultCount": "0",
      		"resultSize": "0"
      	}
      }
       
      Result in n1ql:
      [
        {
          "$1": ""
        }
      ]
      
      

      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:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty