mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
Fix a typo in parse_value error message
This commit is contained in:
parent
b716ffb937
commit
89602dc044
1 changed files with 1 additions and 1 deletions
|
@ -774,7 +774,7 @@ impl Parser {
|
|||
//TODO: parse the timestamp here (see parse_timestamp_value())
|
||||
Token::Number(ref n) if n.contains(".") => match n.parse::<f64>() {
|
||||
Ok(n) => Ok(Value::Double(n)),
|
||||
Err(e) => parser_err!(format!("Could not parse '{}' as i64: {}", n, e)),
|
||||
Err(e) => parser_err!(format!("Could not parse '{}' as f64: {}", n, e)),
|
||||
},
|
||||
Token::Number(ref n) => match n.parse::<i64>() {
|
||||
Ok(n) => Ok(Value::Long(n)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue