Skip to content

Commit 9af6c48

Browse files
authored
Revert "Fix bug when parsing a Snowflake stage with ; suffix (apache#1688)"
This reverts commit 5492e63.
1 parent c2da87d commit 9af6c48

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/dialect/snowflake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ pub fn parse_stage_name_identifier(parser: &mut Parser) -> Result<Ident, ParserE
625625
let mut ident = String::new();
626626
while let Some(next_token) = parser.next_token_no_skip() {
627627
match &next_token.token {
628-
Token::Whitespace(_) | Token::SemiColon => break,
628+
Token::Whitespace(_) => break,
629629
Token::Period => {
630630
parser.prev_token();
631631
break;

tests/sqlparser_snowflake.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,10 +3102,6 @@ fn parse_ls_and_rm() {
31023102
};
31033103

31043104
snowflake().verified_stmt(r#"LIST @"STAGE_WITH_QUOTES""#);
3105-
// Semi-colon after stage name - should terminate the stage name
3106-
snowflake()
3107-
.parse_sql_statements("LIST @db1.schema1.stage1/dir1/;")
3108-
.unwrap();
31093105
}
31103106

31113107
#[test]

0 commit comments

Comments
 (0)