diff --git a/src/parser.rs b/src/parser.rs index e72ad834..ff822b6a 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -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