mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 11:17:23 +00:00
Add parsing for PostgreSQL math operators (#267)
This commit is contained in:
parent
2f71324c33
commit
926b03a31d
6 changed files with 171 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue