Skip to content

Commit e698120

Browse files
fix the behaviour of multiple USING clauses in CREATE INDEX
1 parent 1036668 commit e698120

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/parser/mod.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7076,12 +7076,7 @@ impl<'a> Parser<'a> {
70767076

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

7079-
if let Some(second_using) = self.parse_using_index_type_clause()? {
7080-
if using.is_some() {
7081-
return Err(ParserError::ParserError("USING already specified".into()));
7082-
}
7083-
using = Some(second_using);
7084-
}
7079+
using = self.parse_optional_using_then_index_type()?.or(using);
70857080

70867081
let columns = self.parse_parenthesized_index_column_list()?;
70877082

0 commit comments

Comments
 (0)