mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-08 01:15:00 +00:00
Boxed Query body to save some stack space (#540)
This commit is contained in:
parent
5363d4e399
commit
dea7666086
6 changed files with 24 additions and 24 deletions
|
@ -427,7 +427,7 @@ fn parse_update_set_from() {
|
|||
lateral: false,
|
||||
subquery: Box::new(Query {
|
||||
with: None,
|
||||
body: SetExpr::Select(Box::new(Select {
|
||||
body: Box::new(SetExpr::Select(Box::new(Select {
|
||||
distinct: false,
|
||||
top: None,
|
||||
projection: vec![
|
||||
|
@ -452,7 +452,7 @@ fn parse_update_set_from() {
|
|||
sort_by: vec![],
|
||||
having: None,
|
||||
qualify: None
|
||||
})),
|
||||
}))),
|
||||
order_by: vec![],
|
||||
limit: None,
|
||||
offset: None,
|
||||
|
@ -1042,7 +1042,7 @@ fn parse_prepare() {
|
|||
Expr::Identifier("a2".into()),
|
||||
Expr::Identifier("a3".into()),
|
||||
]];
|
||||
match &source.body {
|
||||
match &*source.body {
|
||||
SetExpr::Values(Values(values)) => assert_eq!(values.as_slice(), &expected_values),
|
||||
_ => unreachable!(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue