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:
Nickolay Ponomarev 2019-01-31 15:10:52 +03:00
parent 9967031cba
commit 3619e89e9c
3 changed files with 7 additions and 13 deletions

View file

@ -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();