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

Advanced cbq shell : SetQueryParams after popping from a variable stack has encoding issue. Strings are treated as binary values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 4.5.0
    • query
    • Untriaged
    • Unknown

    Description

      cbq> \set -$a "fun";
      cbq> \push -$a "not fun";
      cbq> select $a;
      {
      "requestID": "07b6497a-09f0-4ba1-9dc3-002e70f9b882",
      "signature":

      { "$1": "json" }

      ,
      "results": [

      { "$1": "not fun" }

      ],
      "status": "success",
      "metrics":

      { "elapsedTime": "458.671µs", "executionTime": "424.298µs", "resultCount": 1, "resultSize": 39 }

      }
      cbq> \pop;
      cbq> select $a;
      {
      "requestID": "38dd2948-5b59-402b-8410-311fc90204dc",
      "signature":

      { "$1": "json" }

      ,
      "results": [

      { "$1": "\u003cbinary (3 b)\u003e" }

      ],
      "status": "success",
      "metrics":

      { "elapsedTime": "446.049µs", "executionTime": "413.763µs", "resultCount": 1, "resultSize": 56 }

      }

      cbq> \SET;
      Query Parameters ::

      Named Parameters ::
      Parameter name : a Value ["fun"]

      User Defined Session Parameters ::

      Predefined Session Parameters ::
      Parameter name : histfile Value [".cbq_history"]

      Attachments

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

        Activity

          People

            isha Isha Kandaswamy (Inactive)
            isha Isha Kandaswamy (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