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

cbq : \set command without name and only prefix, results in empty parameter with a value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.6.0, 5.0.0
    • 5.0.0
    • query
    • Untriaged
    • No
    • Query-Sprint-09-19-2016

    Description

      When we assign values to parameters using the \set or \push commands, it doesn't error out when there is no parameter name. This happens only for parameters that have prefixes.

      Ishas-MacBook-Pro:cbq isha$ ./cbq localhost:8093
       No input credentials. In order to connect to a server with authentication, please provide credentials.
       Connected to : http://localhost:8093/. Type Ctrl-D or \QUIT to exit.
       
       Path to history file for the shell : /Users/isha/.cbq_history 
      cbq> \set - f;
      cbq> \set;
       Query Parameters : 
       Parameter name : 
       Value : ["f"]
       
       
       Named Parameters : 
       
       User Defined Session Parameters : 
       
       Predefined Session Parameters : 
       Parameter name : histfile
       Value : [".cbq_history"]
       
       Parameter name : batch
       Value : ["off"]
       
       
      cbq> \quit;
      

      Attachments

        For Gerrit Dashboard: MB-20897
        # Subject Branch Project Status CR V

        Activity

          People

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