mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-04 13:10:31 +00:00
Remove Box<> from SQLOrderByExpr
It was probably copied from somewhere else when most types were variants in ASTNode, and needed Box<> to prevent recursion in the ASTNode definition.
This commit is contained in:
parent
9967031cba
commit
3619e89e9c
3 changed files with 7 additions and 13 deletions
|
@ -1362,7 +1362,7 @@ impl Parser {
|
|||
None
|
||||
};
|
||||
|
||||
expr_list.push(SQLOrderByExpr::new(Box::new(expr), asc));
|
||||
expr_list.push(SQLOrderByExpr { expr, asc });
|
||||
|
||||
if let Some(Token::Comma) = self.peek_token() {
|
||||
self.next_token();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue