mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
Code review fixes
This commit is contained in:
parent
0b74460e27
commit
0af1f06a83
1 changed files with 4 additions and 4 deletions
|
@ -3611,12 +3611,12 @@ impl<'a> Parser<'a> {
|
|||
}
|
||||
Keyword::MEMBER => {
|
||||
if self.parse_keyword(Keyword::OF) {
|
||||
let _ = self.expect_token(&Token::LParen);
|
||||
let expr2 = self.parse_expr()?;
|
||||
let _ = self.expect_token(&Token::RParen);
|
||||
self.expect_token(&Token::LParen)?;
|
||||
let array = self.parse_expr()?;
|
||||
self.expect_token(&Token::RParen)?;
|
||||
Ok(Expr::MemberOf(MemberOf {
|
||||
value: Box::new(expr),
|
||||
array: Box::new(expr2),
|
||||
array: Box::new(array),
|
||||
}))
|
||||
} else {
|
||||
self.expected("OF after MEMBER", self.peek_token())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue