mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 14:28:22 +00:00
Add support for GRANT on some common Snowflake objects (#1699)
This commit is contained in:
parent
c3256a80d7
commit
906f395341
3 changed files with 37 additions and 2 deletions
|
@ -8779,6 +8779,10 @@ fn parse_grant() {
|
|||
verified_stmt("GRANT USAGE ON SCHEMA sc1 TO a:b");
|
||||
verified_stmt("GRANT USAGE ON SCHEMA sc1 TO GROUP group1");
|
||||
verified_stmt("GRANT OWNERSHIP ON ALL TABLES IN SCHEMA DEV_STAS_ROGOZHIN TO ROLE ANALYST");
|
||||
verified_stmt("GRANT USAGE ON DATABASE db1 TO ROLE role1");
|
||||
verified_stmt("GRANT USAGE ON WAREHOUSE wh1 TO ROLE role1");
|
||||
verified_stmt("GRANT OWNERSHIP ON INTEGRATION int1 TO ROLE role1");
|
||||
verified_stmt("GRANT SELECT ON VIEW view1 TO ROLE role1");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue