Add parsing for PostgreSQL math operators (#267)

This commit is contained in:
Alex Dukhno 2020-09-30 05:29:31 +03:00 committed by GitHub
parent 2f71324c33
commit 926b03a31d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 171 additions and 6 deletions

View file

@ -343,7 +343,7 @@ fn parse_select_count_distinct() {
name: ObjectName(vec![Ident::new("COUNT")]),
args: vec![FunctionArg::Unnamed(Expr::UnaryOp {
op: UnaryOperator::Plus,
expr: Box::new(Expr::Identifier(Ident::new("x")))
expr: Box::new(Expr::Identifier(Ident::new("x"))),
})],
over: None,
distinct: true,