2014-08-21 21:25:22 +02:00
|
|
|
-- source include/not_embedded.inc
|
|
|
|
|
|
|
|
#
|
|
|
|
# MDEV-6625 SHOW GRANTS for current_user_name@wrong_host_name
|
|
|
|
#
|
|
|
|
--error ER_NONEXISTING_GRANT
|
|
|
|
SHOW GRANTS FOR root@invalid_host;
|
2016-04-21 14:51:37 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# MDEV-9580 SHOW GRANTS FOR <current_user> fails
|
|
|
|
#
|
|
|
|
create user test;
|
|
|
|
create user foo;
|
|
|
|
create role foo;
|
|
|
|
grant foo to test;
|
|
|
|
--connect (conn_1, localhost, test,,)
|
|
|
|
set role foo;
|
|
|
|
show grants for test; # user
|
|
|
|
show grants for foo; # role
|
|
|
|
--error ER_DBACCESS_DENIED_ERROR
|
|
|
|
show grants for foo@'%'; # user
|
|
|
|
--connection default
|
|
|
|
drop user test, foo;
|
|
|
|
drop role foo;
|
|
|
|
|