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

panic: nil dereference in EXCLUDE clause's error message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.6.0
    • 7.6.0
    • query
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      Input to EXCLUDE expression is a string.

      The string is split on ',' . Substrings are then Parsed() to give us a n1ql expression. 

      for eg:

      EXCLUDE "a ,b"

      "a" -> `a` field

      "b" -> `b` field

       

      the case here is that the substring is parsed as a statement instead of an expression.

      eg: EXCLUDE "SELECT 1"

      hence we end up with a nil variable after type assertion to "Expression".

      Attachments

        Issue Links

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

          Activity

            People

              pierre.regazzoni Pierre Regazzoni
              gaurav.jayaraj Gaurav Jayaraj
              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