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

@ -3941,6 +3941,8 @@ use test;
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;
create procedure mysqldump_test_db.sp1() select 'hello';
@ -5179,6 +5181,7 @@ END
# Test to check 'Insufficient privileges' error.
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;
# Running 'replace_regex on timestamp'