Skip to content

Commit 89602dc

Browse files
committed
Fix a typo in parse_value error message
1 parent b716ffb commit 89602dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sqlparser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ impl Parser {
774774
//TODO: parse the timestamp here (see parse_timestamp_value())
775775
Token::Number(ref n) if n.contains(".") => match n.parse::<f64>() {
776776
Ok(n) => Ok(Value::Double(n)),
777-
Err(e) => parser_err!(format!("Could not parse '{}' as i64: {}", n, e)),
777+
Err(e) => parser_err!(format!("Could not parse '{}' as f64: {}", n, e)),
778778
},
779779
Token::Number(ref n) => match n.parse::<i64>() {
780780
Ok(n) => Ok(Value::Long(n)),

0 commit comments

Comments
 (0)