Skip to content

Commit c603785

Browse files
committed
fix test case
1 parent 9ea9cb1 commit c603785

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/parser/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8383,7 +8383,7 @@ impl<'a> Parser<'a> {
83838383
let mut idents = vec![];
83848384
loop {
83858385
if self.dialect.supports_object_name_double_dot_notation()
8386-
&& !idents.is_empty()
8386+
&& idents.len() == 1
83878387
&& self.peek_token() == Token::Period
83888388
{
83898389
self.next_token();

tests/sqlparser_snowflake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2868,7 +2868,7 @@ fn test_projection_with_nested_trailing_commas() {
28682868
#[test]
28692869
fn test_sf_double_dot_notation() {
28702870
snowflake().verified_stmt("SELECT * FROM db_name..table_name");
2871-
snowflake().verified_stmt("SELECT * FROM x, y..z JOIN a..b as as b ON x.id = b.id");
2871+
snowflake().verified_stmt("SELECT * FROM x, y..z JOIN a..b AS b ON x.id = b.id");
28722872
}
28732873

28742874
#[test]

0 commit comments

Comments
 (0)