Skip to content

Commit 5e17be6

Browse files
remove duplicate function
1 parent e698120 commit 5e17be6

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/parser/mod.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7067,7 +7067,7 @@ impl<'a> Parser<'a> {
70677067
let index_name = if if_not_exists || !self.parse_keyword(Keyword::ON) {
70687068
let index_name = self.parse_object_name(false)?;
70697069
// MySQL allows `USING index_type` either before or after `ON table_name`
7070-
using = self.parse_using_index_type_clause()?;
7070+
using = self.parse_optional_using_then_index_type()?;
70717071
self.expect_keyword_is(Keyword::ON)?;
70727072
Some(index_name)
70737073
} else {
@@ -8591,14 +8591,6 @@ impl<'a> Parser<'a> {
85918591
}
85928592
}
85938593

8594-
pub fn parse_using_index_type_clause(&mut self) -> Result<Option<IndexType>, ParserError> {
8595-
if self.parse_keyword(Keyword::USING) {
8596-
Ok(Some(self.parse_index_type()?))
8597-
} else {
8598-
Ok(None)
8599-
}
8600-
}
8601-
86028594
pub fn parse_index_type(&mut self) -> Result<IndexType, ParserError> {
86038595
Ok(if self.parse_keyword(Keyword::BTREE) {
86048596
IndexType::BTree

0 commit comments

Comments
 (0)