mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-08 01:15:00 +00:00
bug fix
This commit is contained in:
parent
5b7e89225b
commit
1bb7149670
1 changed files with 2 additions and 0 deletions
|
@ -762,6 +762,8 @@ impl Parser {
|
|||
pub fn parse_literal_string(&mut self) -> Result<String, ParserError> {
|
||||
match self.next_token() {
|
||||
Some(Token::String(ref s)) => Ok(s.clone()),
|
||||
Some(Token::SingleQuotedString(ref s)) => Ok(s.clone()),
|
||||
Some(Token::DoubleQuotedString(ref s)) => Ok(s.clone()),
|
||||
other => parser_err!(format!("Expected literal string, found {:?}", other)),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue