Skip to content

Commit dd086e8

Browse files
add comment explaining MySQL behaviour for USING in CREATE INDEX
1 parent 5e17be6 commit dd086e8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/parser/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7076,6 +7076,8 @@ impl<'a> Parser<'a> {
70767076

70777077
let table_name = self.parse_object_name(false)?;
70787078

7079+
// MySQL allows having two `USING` clauses.
7080+
// In that case, the second clause overwrites the first.
70797081
using = self.parse_optional_using_then_index_type()?.or(using);
70807082

70817083
let columns = self.parse_parenthesized_index_column_list()?;

0 commit comments

Comments
 (0)