mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
Add parsing for GRANT ROLE and GRANT DATABASE ROLE in Snowflake dialect (#1689)
This commit is contained in:
parent
257da5a82c
commit
ec948eaf6e
5 changed files with 94 additions and 54 deletions
|
@ -3263,3 +3263,15 @@ fn test_grant_account_privileges() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_grant_role_to() {
|
||||
snowflake_and_generic().verified_stmt("GRANT ROLE r1 TO ROLE r2");
|
||||
snowflake_and_generic().verified_stmt("GRANT ROLE r1 TO USER u1");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_grant_database_role_to() {
|
||||
snowflake_and_generic().verified_stmt("GRANT DATABASE ROLE r1 TO ROLE r2");
|
||||
snowflake_and_generic().verified_stmt("GRANT DATABASE ROLE db1.sc1.r1 TO ROLE db1.sc1.r2");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue