mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-06 23:38:03 +00:00
Remove FileType, fix compiler warning
This commit is contained in:
parent
ce66505377
commit
80cb9b13ce
2 changed files with 6 additions and 14 deletions
|
@ -408,12 +408,12 @@ impl Parser {
|
|||
}
|
||||
|
||||
/// Parse a literal string
|
||||
fn parse_literal_string(&mut self) -> Result<String, ParserError> {
|
||||
match self.next_token() {
|
||||
Some(Token::String(ref s)) => Ok(s.clone()),
|
||||
other => parser_err!(format!("Expected literal string, found {:?}", other)),
|
||||
}
|
||||
}
|
||||
// fn parse_literal_string(&mut self) -> Result<String, ParserError> {
|
||||
// match self.next_token() {
|
||||
// Some(Token::String(ref s)) => Ok(s.clone()),
|
||||
// other => parser_err!(format!("Expected literal string, found {:?}", other)),
|
||||
// }
|
||||
// }
|
||||
|
||||
/// Parse a SQL datatype (in the context of a CREATE TABLE statement for example)
|
||||
fn parse_data_type(&mut self) -> Result<SQLType, ParserError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue