You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/07/10 07:47:29 UTC

[GitHub] [shardingsphere] Trydamere commented on a diff in pull request #18987: support alter audit policy in oracle

Trydamere commented on code in PR #18987:
URL: https://github.com/apache/shardingsphere/pull/18987#discussion_r917354805


##########
shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-oracle/src/main/antlr4/imports/oracle/DDLStatement.g4:
##########
@@ -2548,3 +2548,184 @@ resolveClauses
 resolveClause
     : LP_ matchString DOT_? (schemaName | MINUS_) RP_
     ;
+
+alterAuditPolicy
+    : ALTER AUDIT POLICY policyName
+        (ADD (privilegeAuditClause)? (actionAuditClause)? (roleAuditClause)? (ONLY TOPLEVEL)?)?
+        (DROP (privilegeAuditClause)? (actionAuditClause)? (roleAuditClause)? (ONLY TOPLEVEL)?)?
+        (CONDITION ( DROP | condition  EVALUATE PER (STATEMENT  | SESSION | INSTANCE)))?
+    ;
+
+privilegeAuditClause
+    : PRIVILEGES systemPrivilegeClause (COMMA_ systemPrivilegeClause)*
+    ;
+
+actionAuditClause
+    : (standardActions | componentActions)*
+    ;
+
+standardActions
+    : ACTIONS (objectAction ON (DIRECTORY directoryName | MINING MODEL objectName | objectName) | systemAction)

Review Comment:
   ok



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org