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
- relates to
-
MB-53937 EXCLUDE in SelectClause
- Closed
For Gerrit Dashboard: MB-59851 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
201673,3 | MB-59851 panic: nil dereference in EXCLUDE clause's error message | master | query | Status: MERGED | +2 | +1 |
201811,2 | BP: MB-59851 panic: nil dereference in EXCLUDE clause's error message | trinity | query | Status: MERGED | +2 | +1 |