Extract a SQLFunction struct

This variant is getting rather large, and it's useful downstream to be
able to pass around SQLFunction nodes without reinventing the wheel.
This commit is contained in:
Nikhil Benesch 2019-05-27 02:05:20 -04:00
parent 2308c1c6f7
commit 054a59df12
No known key found for this signature in database
GPG key ID: F7386C5DEADABA7F
3 changed files with 40 additions and 36 deletions

View file

@ -301,12 +301,12 @@ impl Parser {
None
};
Ok(ASTNode::SQLFunction {
Ok(ASTNode::SQLFunction(SQLFunction {
name,
args,
over,
distinct,
})
}))
}
pub fn parse_window_frame(&mut self) -> Result<Option<SQLWindowFrame>, ParserError> {