mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-01 03:37:21 +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
|
@ -115,7 +115,7 @@ impl TestedDialects {
|
|||
/// Ensures that `sql` parses as a single [Select], and is not modified
|
||||
/// after a serialization round-trip.
|
||||
pub fn verified_only_select(&self, query: &str) -> Select {
|
||||
match self.verified_query(query).body {
|
||||
match *self.verified_query(query).body {
|
||||
SetExpr::Select(s) => *s,
|
||||
_ => panic!("Expected SetExpr::Select"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue