mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-11 22:42:02 +00:00
Add support for DuckDB functions named arguments with assignment operator (#1195)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
parent
e747c9c2af
commit
14b33ac493
4 changed files with 56 additions and 6 deletions
|
@ -4584,6 +4584,8 @@ pub enum FunctionArgOperator {
|
|||
Equals,
|
||||
/// function(arg1 => value1)
|
||||
RightArrow,
|
||||
/// function(arg1 := value1)
|
||||
Assignment,
|
||||
}
|
||||
|
||||
impl fmt::Display for FunctionArgOperator {
|
||||
|
@ -4591,6 +4593,7 @@ impl fmt::Display for FunctionArgOperator {
|
|||
match self {
|
||||
FunctionArgOperator::Equals => f.write_str("="),
|
||||
FunctionArgOperator::RightArrow => f.write_str("=>"),
|
||||
FunctionArgOperator::Assignment => f.write_str(":="),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue