mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-03 04:37:21 +00:00
Don't Box<ASTNode> in SQLStatement
This used to be needed when it was a variant in the ASTNode enum itself.
This commit is contained in:
parent
3619e89e9c
commit
c5bbfc33fd
4 changed files with 13 additions and 13 deletions
|
@ -553,7 +553,7 @@ impl Parser {
|
|||
let is_unique = self.parse_keyword("UNIQUE");
|
||||
let default = if self.parse_keyword("DEFAULT") {
|
||||
let expr = self.parse_default_expr(0)?;
|
||||
Some(Box::new(expr))
|
||||
Some(expr)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
@ -1104,7 +1104,7 @@ impl Parser {
|
|||
self.expect_keyword("FROM")?;
|
||||
let table_name = self.parse_object_name()?;
|
||||
let selection = if self.parse_keyword("WHERE") {
|
||||
Some(Box::new(self.parse_expr()?))
|
||||
Some(self.parse_expr()?)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue