Skip to content

Commit f18fbe5

Browse files
committed
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`)
1 parent 7041850 commit f18fbe5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/sqlparser.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,16 +1212,6 @@ impl Parser {
12121212
}
12131213
}
12141214

1215-
/// Parse a literal double
1216-
pub fn parse_literal_double(&mut self) -> Result<f64, ParserError> {
1217-
match self.next_token() {
1218-
Some(Token::Number(s)) => s.parse::<f64>().map_err(|e| {
1219-
ParserError::ParserError(format!("Could not parse '{}' as f64: {}", s, e))
1220-
}),
1221-
other => parser_err!(format!("Expected literal number, found {:?}", other)),
1222-
}
1223-
}
1224-
12251215
/// Parse a literal string
12261216
pub fn parse_literal_string(&mut self) -> Result<String, ParserError> {
12271217
match self.next_token() {

0 commit comments

Comments
 (0)