Merge pull request #89 from benesch/sqlfunction-struct

Extract a SQLFunction struct
This commit is contained in:
Nikhil Benesch 2019-06-03 11:09:27 -04:00 committed by GitHub
commit a3aaa49a7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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> {