-
-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grammar: Add DROP POLICY statement to postgres dialect (#2024)
- Loading branch information
Showing
3 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
DROP POLICY account_managers ON accounts; | ||
DROP POLICY IF EXISTS account_managers ON accounts; | ||
DROP POLICY account_managers ON accounts CASCADE; | ||
DROP POLICY account_managers ON accounts RESTRICT; | ||
DROP POLICY IF EXISTS account_managers ON accounts RESTRICT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# YML test files are auto-generated from SQL files and should not be edited by | ||
# hand. To help enforce this, the "hash" field in the file must match a hash | ||
# computed by SQLFluff when running the tests. Please run | ||
# `python test/generate_parse_fixture_yml.py` to generate them after adding or | ||
# altering SQL files. | ||
_hash: 5e9709e8abf96cd4c55171f63ddb5b2dbc1c2b9298c8d6ff94ac36e11a7675ef | ||
file: | ||
- statement: | ||
drop_policy_statement: | ||
- keyword: DROP | ||
- keyword: POLICY | ||
- object_reference: | ||
identifier: account_managers | ||
- keyword: 'ON' | ||
- table_reference: | ||
identifier: accounts | ||
- statement_terminator: ; | ||
- statement: | ||
drop_policy_statement: | ||
- keyword: DROP | ||
- keyword: POLICY | ||
- keyword: IF | ||
- keyword: EXISTS | ||
- object_reference: | ||
identifier: account_managers | ||
- keyword: 'ON' | ||
- table_reference: | ||
identifier: accounts | ||
- statement_terminator: ; | ||
- statement: | ||
drop_policy_statement: | ||
- keyword: DROP | ||
- keyword: POLICY | ||
- object_reference: | ||
identifier: account_managers | ||
- keyword: 'ON' | ||
- table_reference: | ||
identifier: accounts | ||
- keyword: CASCADE | ||
- statement_terminator: ; | ||
- statement: | ||
drop_policy_statement: | ||
- keyword: DROP | ||
- keyword: POLICY | ||
- object_reference: | ||
identifier: account_managers | ||
- keyword: 'ON' | ||
- table_reference: | ||
identifier: accounts | ||
- keyword: RESTRICT | ||
- statement_terminator: ; | ||
- statement: | ||
drop_policy_statement: | ||
- keyword: DROP | ||
- keyword: POLICY | ||
- keyword: IF | ||
- keyword: EXISTS | ||
- object_reference: | ||
identifier: account_managers | ||
- keyword: 'ON' | ||
- table_reference: | ||
identifier: accounts | ||
- keyword: RESTRICT | ||
- statement_terminator: ; |