Skip to content

Commit a33f332

Browse files
committed
Fix test
1 parent 98e9dfd commit a33f332

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/dialect/snowflake.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,8 @@ impl Dialect for SnowflakeDialect {
179179
));
180180
} else if parser.parse_keyword(Keyword::DATABASE) {
181181
return Some(parse_create_database(or_replace, transient, parser));
182-
} else if parser.parse_keyword(Keyword::EXTERNAL) {
183-
if parser.parse_keyword(Keyword::VOLUME) {
184-
return Some(parse_create_external_volume(or_replace, parser));
185-
} else {
186-
parser.prev_token();
187-
}
182+
} else if parser.parse_keywords(&[Keyword::EXTERNAL, Keyword::VOLUME]) {
183+
return Some(parse_create_external_volume(or_replace, parser));
188184
} else {
189185
// need to go back with the cursor
190186
let mut back = 1;

src/keywords.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,9 +939,9 @@ define_keywords!(
939939
URL,
940940
USAGE,
941941
USE,
942-
USE_PRIVATELINK_ENDPOINT,
943942
USER,
944943
USER_RESOURCES,
944+
USE_PRIVATELINK_ENDPOINT,
945945
USING,
946946
UUID,
947947
VACUUM,

0 commit comments

Comments
 (0)