mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-22 23:14:07 +00:00
Derive PartialOrd
, Ord
, and Copy
whenever possible (#717)
This allow other projects to use our structures inside others that need those.
This commit is contained in:
parent
c429197340
commit
5e1d9f8d6e
10 changed files with 106 additions and 106 deletions
|
@ -1271,7 +1271,7 @@ fn parse_pg_unary_ops() {
|
|||
let select = pg().verified_only_select(&format!("SELECT {}a", &str_op));
|
||||
assert_eq!(
|
||||
SelectItem::UnnamedExpr(Expr::UnaryOp {
|
||||
op: op.clone(),
|
||||
op: *op,
|
||||
expr: Box::new(Expr::Identifier(Ident::new("a"))),
|
||||
}),
|
||||
select.projection[0]
|
||||
|
@ -1287,7 +1287,7 @@ fn parse_pg_postfix_factorial() {
|
|||
let select = pg().verified_only_select(&format!("SELECT a{}", &str_op));
|
||||
assert_eq!(
|
||||
SelectItem::UnnamedExpr(Expr::UnaryOp {
|
||||
op: op.clone(),
|
||||
op: *op,
|
||||
expr: Box::new(Expr::Identifier(Ident::new("a"))),
|
||||
}),
|
||||
select.projection[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue