mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-30 10:47:22 +00:00
minor cleanup to avoid is_ok()
(#740)
This commit is contained in:
parent
bd35273789
commit
77eddfcc8d
1 changed files with 1 additions and 1 deletions
|
@ -2749,7 +2749,7 @@ impl<'a> Parser<'a> {
|
|||
let index_name = self.parse_object_name()?;
|
||||
self.expect_keyword(Keyword::ON)?;
|
||||
let table_name = self.parse_object_name()?;
|
||||
let using = if self.expect_keyword(Keyword::USING).is_ok() {
|
||||
let using = if self.parse_keyword(Keyword::USING) {
|
||||
Some(self.parse_identifier()?)
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue