-
Notifications
You must be signed in to change notification settings - Fork 479
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
Support parsing multiple show variables. #290
Conversation
Pull Request Test Coverage Report for Build 549753783Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
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
pub fn parse_identifiers(&mut self) -> Result<Vec<Ident>, ParserError> { | ||
let mut idents = vec![]; | ||
loop { | ||
match self.next_token() { | ||
Token::Word(w) => idents.push(w.to_ident()), | ||
Token::EOF => break, | ||
_ => {} | ||
} | ||
} | ||
Ok(idents) | ||
} |
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.
Is SHOW
(without any variable) valid SQL? This code would return Ok(vec![])
for the SQL code SHOW
, correct?
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.
yes
@francis-du could you rebase please |
Sure |
@francis-du I think you didn't rebase/push the rebase yet? |
Done. |
Thanks @francis-du 👍 |
Support parsing multiple show variables.
eg: