1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-29167 new db-level SHOW CREATE ROUTINE privilege

This commit is contained in:
Oleksandr Byelkin
2023-09-04 13:04:06 +02:00
parent b1d1dc90b8
commit 53cdfbd1da
43 changed files with 2308 additions and 110 deletions

View File

@ -1602,6 +1602,8 @@ create database mysqldump_test_db;
grant all privileges on mysqldump_test_db.* to user1;
grant all privileges on mysqldump_test_db.* to user2;
revoke SHOW CREATE ROUTINE on mysqldump_test_db.* from user1;
revoke SHOW CREATE ROUTINE on mysqldump_test_db.* from user2;
connect (user27293,localhost,user1,,mysqldump_test_db,$MASTER_MYPORT,$MASTER_MYSOCK);
connection user27293;
@ -2334,6 +2336,7 @@ CREATE VIEW v2 AS SELECT * FROM t2;
--echo
GRANT ALL PRIVILEGES ON BUG52792.* TO user1;
REVOKE SHOW CREATE ROUTINE ON BUG52792.* FROM user1;
connect (conn_1, localhost, user1, , BUG52792, $MASTER_MYPORT, $MASTER_MYSOCK);
connection conn_1;