-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed visitor and select fields #615
Conversation
Converted back to draft to address a few other necessary changes |
@@ -301,7 +301,7 @@ func (s *StatementCleaner) EnterSelectCore(node *tree.SimpleSelect) (err error) | |||
|
|||
// EnterSelectStmt checks that, for each SelectCore besides the last, a compound operator is provided | |||
func (s *StatementCleaner) EnterSelectStmtNoCte(node *tree.SelectCore) (err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EnterSelectStmtNoCte? seems listener not changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
parse/sql/tree/expression.go
Outdated
@@ -26,64 +26,214 @@ func (e *expressionBase) Walk(w AstListener) error { | |||
|
|||
type Wrapped bool | |||
|
|||
type ExpressionLiteral struct { | |||
// type ExpressionLiteral struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete this?
This makes two changes to the SQL AST:
SelectCores
field toSimpleSelects
, to match the changes made in Parse: tree update for visitor #602