1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-9443: Roles aren't supported in prepared statements

Make role statements work with the PREPARE keyword.
This commit is contained in:
Vicențiu Ciorbaru
2016-03-21 22:14:49 +02:00
parent 16ddd1824c
commit c4bef7ad3c
3 changed files with 117 additions and 0 deletions

View File

@ -2458,9 +2458,12 @@ static bool check_prepared_statement(Prepared_statement *stmt)
case SQLCOM_CREATE_USER:
case SQLCOM_RENAME_USER:
case SQLCOM_DROP_USER:
case SQLCOM_CREATE_ROLE:
case SQLCOM_DROP_ROLE:
case SQLCOM_ASSIGN_TO_KEYCACHE:
case SQLCOM_PRELOAD_KEYS:
case SQLCOM_GRANT:
case SQLCOM_GRANT_ROLE:
case SQLCOM_REVOKE:
case SQLCOM_KILL:
case SQLCOM_COMPOUND: