You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just for record:
Current fix uses look ahead parsing, it determines type of expression by next token after first expression, so I added parseListUntil function.
Other example:
This is a valid SQL expression, but currently, we only support this:
This might be more complex than just parsing parentheses when we are in an IN operator.
I think we need to parse parentheses in two different ways:
Single expression:
(expr)
Example:
This is already supported, the parser returns an expr.Parentheses expression.
List of expressions:
(expr, expr, ...)
Example:
If we have more than one element in that list of parentheses, this must be parsed as an expr.LiteralExprList.
There is already a function that can parse this kind of expression: https://github.com/genjidb/genji/blob/9da693665fe93d3fcfdffe3312a48712fc40023f/sql/parser/expr.go#L418:18
The text was updated successfully, but these errors were encountered: