iffyio commented on code in PR #1939:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/1939#discussion_r2244743813
##########
src/parser/mod.rs:
##########
@@ -9756,6 +9771,15 @@ impl<'a> Parser<'a> {
}
}
+ /// Parse a boolean string
+ pub fn parse_boolean_string(&mut self) -> Result<bool, ParserError> {
+ match self.parse_one_of_keywords(&[Keyword::TRUE, Keyword::FALSE]) {
+ Some(Keyword::TRUE) => Ok(true),
+ Some(Keyword::FALSE) => Ok(false),
+ _ => self.expected("TRUE or FALSE", self.peek_token()),
+ }
+ }
Review Comment:
Ah I see, but I think we can inline it in this PR and if it ends up being
used in the next PR we can break it out into a function. Also heads up for the
function we would want to make it either private or `pub(crate)` visibility
wise instead of `pub`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]