We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ea9cb1 commit c603785Copy full SHA for c603785
src/parser/mod.rs
@@ -8383,7 +8383,7 @@ impl<'a> Parser<'a> {
8383
let mut idents = vec![];
8384
loop {
8385
if self.dialect.supports_object_name_double_dot_notation()
8386
- && !idents.is_empty()
+ && idents.len() == 1
8387
&& self.peek_token() == Token::Period
8388
{
8389
self.next_token();
tests/sqlparser_snowflake.rs
@@ -2868,7 +2868,7 @@ fn test_projection_with_nested_trailing_commas() {
2868
#[test]
2869
fn test_sf_double_dot_notation() {
2870
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");
+ snowflake().verified_stmt("SELECT * FROM x, y..z JOIN a..b AS b ON x.id = b.id");
2872
}
2873
2874
0 commit comments