Skip to content

Commit 1036668

Browse files
remove redundant test
The second test in parse_create_index_using_before_on was redundant.
1 parent 8b4973f commit 1036668

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/sqlparser_common.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17214,23 +17214,4 @@ fn parse_create_index_using_before_on() {
1721417214
}
1721517215
_ => unreachable!(),
1721617216
}
17217-
17218-
let sql = "CREATE UNIQUE INDEX idx_name USING HASH ON table_name (col1, col2)";
17219-
match all_dialects().parse_sql_statements(sql).unwrap()[0].clone() {
17220-
Statement::CreateIndex(CreateIndex {
17221-
name,
17222-
table_name,
17223-
using,
17224-
columns,
17225-
unique,
17226-
..
17227-
}) => {
17228-
assert_eq!(name.unwrap().to_string(), "idx_name");
17229-
assert_eq!(table_name.to_string(), "table_name");
17230-
assert_eq!(using, Some(IndexType::Hash));
17231-
assert_eq!(columns.len(), 2);
17232-
assert!(unique);
17233-
}
17234-
_ => unreachable!(),
17235-
}
1723617217
}

0 commit comments

Comments
 (0)