mariadb/mysql-test/t/acl_roles_rpl_definer.test
2013-10-18 12:17:49 -07:00

40 lines
862 B
Text

#
# replication of the DEFINER=current_role
#
--source include/master-slave.inc
create role role1;
grant execute on test.* to role1;
grant role1 to current_user;
set role role1;
create definer=current_user procedure pcu() select current_user;
create definer=root@localhost procedure pu() select "root@localhost";
create definer=current_role procedure pcr() select current_role;
create definer=role1 procedure pr() select "role1";
show create procedure pcu;
show create procedure pu;
show create procedure pcr;
show create procedure pr;
sync_slave_with_master;
connection slave;
echo [connection slave];
show create procedure pcu;
show create procedure pu;
show create procedure pcr;
show create procedure pr;
connection master;
drop procedure pcu;
drop procedure pu;
drop procedure pcr;
drop procedure pr;
drop role role1;
--source include/rpl_end.inc