mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 19:27:21 +00:00
Remove unused parse_literal_double
`parse_value` handles parsing a non-integer value in expression context, and we use parse_literal_uint() when expecting a number in other contexts (such as `FETCH FIRST ... ROWS`)
This commit is contained in:
parent
7041850b33
commit
f18fbe5cda
1 changed files with 0 additions and 10 deletions
|
@ -1212,16 +1212,6 @@ impl Parser {
|
|||
}
|
||||
}
|
||||
|
||||
/// Parse a literal double
|
||||
pub fn parse_literal_double(&mut self) -> Result<f64, ParserError> {
|
||||
match self.next_token() {
|
||||
Some(Token::Number(s)) => s.parse::<f64>().map_err(|e| {
|
||||
ParserError::ParserError(format!("Could not parse '{}' as f64: {}", s, e))
|
||||
}),
|
||||
other => parser_err!(format!("Expected literal number, found {:?}", other)),
|
||||
}
|
||||
}
|
||||
|
||||
/// Parse a literal string
|
||||
pub fn parse_literal_string(&mut self) -> Result<String, ParserError> {
|
||||
match self.next_token() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue