mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-11 14:32:04 +00:00
Merge pull request #88 from benesch/hash
Implement Hash on all AST nodes
This commit is contained in:
commit
057518b377
8 changed files with 34 additions and 31 deletions
|
@ -1031,7 +1031,7 @@ impl Parser {
|
|||
}
|
||||
},
|
||||
Token::Number(ref n) if n.contains('.') => match n.parse::<f64>() {
|
||||
Ok(n) => Ok(Value::Double(n)),
|
||||
Ok(n) => Ok(Value::Double(n.into())),
|
||||
Err(e) => parser_err!(format!("Could not parse '{}' as f64: {}", n, e)),
|
||||
},
|
||||
Token::Number(ref n) => match n.parse::<u64>() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue