DBZ-3686 Support MySQL CREATE ROLE DDL syntax

This commit is contained in:
Chris Cranford 2021-06-30 08:12:08 -04:00 committed by Jiri Pechanec
parent ac59a7d78c
commit 76df33df6c
2 changed files with 14 additions and 0 deletions

View File

@ -56,6 +56,7 @@ ddlStatement
| createLogfileGroup | createProcedure | createFunction
| createServer | createTable | createTablespaceInnodb
| createTablespaceNdb | createTrigger | createView
| createRole
| alterDatabase | alterEvent | alterFunction
| alterInstance | alterLogfileGroup | alterProcedure
| alterServer | alterTable | alterTablespace | alterView
@ -180,6 +181,10 @@ createFunction
(routineBody | returnStatement)
;
createRole
: CREATE ROLE (IF NOT EXISTS)? roleName
;
createServer
: CREATE SERVER uid
FOREIGN DATA WRAPPER wrapperName=(MYSQL | STRING_LITERAL)
@ -1948,6 +1953,10 @@ tableName
: fullId
;
roleName
: uid
;
fullColumnName
: uid (dottedId dottedId? )?
| . dottedId dottedId?

View File

@ -320,3 +320,8 @@ BEGIN
END IF;
END -- //-- delimiter ;
#end
#begin
-- Create Role
create role 'RL_COMPLIANCE_NSA';
create role if not exists 'RL_COMPLIANCE_NSA';
#end