We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 555472f commit 987d460Copy full SHA for 987d460
src/parser/mod.rs
@@ -8350,7 +8350,7 @@ impl<'a> Parser<'a> {
8350
let mut idents = vec![];
8351
loop {
8352
if self.dialect.supports_object_name_double_dot_notation()
8353
- && !idents.is_empty()
+ && idents.len() == 1
8354
&& self.peek_token() == Token::Period
8355
{
8356
self.next_token();
tests/sqlparser_snowflake.rs
@@ -2850,7 +2850,7 @@ fn test_parse_show_columns_sql() {
2850
#[test]
2851
fn test_sf_double_dot_notation() {
2852
snowflake().verified_stmt("SELECT * FROM db_name..table_name");
2853
- 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");
2854
}
2855
2856
0 commit comments