Skip to content

Commit bdbd173

Browse files
add comment explaining USING behaviour
1 parent 43a114c commit bdbd173

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
@@ -7123,6 +7123,8 @@ impl<'a> Parser<'a> {
71237123
// parse it anyway (as we do inside `ALTER TABLE` and `CREATE TABLE` parsing).
71247124
let index_options = self.parse_index_options()?;
71257125

7126+
// Only keep the latest USING, we don't take the IndexOption out of the vec and place the
7127+
// value in the `using` var because we try to keep the order of the options as they appear.
71267128
if index_options
71277129
.iter()
71287130
.any(|opt| matches!(opt, IndexOption::Using(_)))

0 commit comments

Comments
 (0)