mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-04 13:10:31 +00:00
Make Expr::Interval its own struct (#872)
* Make Expr::Interval its own struct * Add test interval display * Fix cargo fmt
This commit is contained in:
parent
b29b551fa1
commit
f15da8772e
3 changed files with 116 additions and 77 deletions
|
@ -1615,13 +1615,13 @@ impl<'a> Parser<'a> {
|
|||
}
|
||||
};
|
||||
|
||||
Ok(Expr::Interval {
|
||||
Ok(Expr::Interval(Interval {
|
||||
value: Box::new(value),
|
||||
leading_field,
|
||||
leading_precision,
|
||||
last_field,
|
||||
fractional_seconds_precision: fsec_precision,
|
||||
})
|
||||
}))
|
||||
}
|
||||
|
||||
/// Parse an operator following an expression
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue