mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-30 10:47:22 +00:00
Don't Box<ASTNode> in SQLSelect
Instead change ASTNode::SQLSubquery to be Box<SQLSelect>
This commit is contained in:
parent
c5bbfc33fd
commit
e3b981a0e2
4 changed files with 17 additions and 17 deletions
|
@ -54,7 +54,7 @@ fn parse_simple_select() {
|
|||
projection, limit, ..
|
||||
}) => {
|
||||
assert_eq!(3, projection.len());
|
||||
assert_eq!(Some(Box::new(ASTNode::SQLValue(Value::Long(5)))), limit);
|
||||
assert_eq!(Some(ASTNode::SQLValue(Value::Long(5))), limit);
|
||||
}
|
||||
_ => assert!(false),
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ fn parse_like() {
|
|||
"%a".to_string()
|
||||
))),
|
||||
},
|
||||
*selection.unwrap()
|
||||
selection.unwrap()
|
||||
);
|
||||
}
|
||||
_ => assert!(false),
|
||||
|
@ -227,7 +227,7 @@ fn parse_not_like() {
|
|||
"%a".to_string()
|
||||
))),
|
||||
},
|
||||
*selection.unwrap()
|
||||
selection.unwrap()
|
||||
);
|
||||
}
|
||||
_ => assert!(false),
|
||||
|
@ -287,7 +287,7 @@ fn parse_select_order_by_limit() {
|
|||
]),
|
||||
order_by
|
||||
);
|
||||
assert_eq!(Some(Box::new(ASTNode::SQLValue(Value::Long(2)))), limit);
|
||||
assert_eq!(Some(ASTNode::SQLValue(Value::Long(2))), limit);
|
||||
}
|
||||
_ => assert!(false),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue