DBZ-3686 Support MySQL CREATE ROLE
DDL syntax
This commit is contained in:
parent
ac59a7d78c
commit
76df33df6c
@ -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?
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user