-
Notifications
You must be signed in to change notification settings - Fork 26
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
Implements ANALYZE stmt #75
Conversation
⚠ staticcheck Failed
|
stmt.Analyze = next | ||
p.consumeToken() | ||
|
||
// optionalLookahead is used again because, ANALYZE alone is a valid string |
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.
why again?
// optionalLookahead is used again because, ANALYZE alone is a valid string | |
// optionalLookahead is used, because ANALYZE alone is a valid statement |
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.
Previous rule had it too. Will change
next, _ = p.optionalLookahead(r) | ||
if next.Type() == token.EOF { |
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.
next, _ = p.optionalLookahead(r) | |
if next.Type() == token.EOF { | |
next, ok = p.optionalLookahead(r) | |
if !ok || next.Type() == token.EOF { |
period, _ := p.optionalLookahead(r) | ||
if period.Type() == token.EOF { |
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.
period, _ := p.optionalLookahead(r) | |
if period.Type() == token.EOF { | |
period, ok := p.optionalLookahead(r) | |
if !ok || period.Type() == token.EOF { |
This PR completes the implementation of ANALYZE stmt (https://sqlite.org/lang_analyze.html) and is a part of #66