1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

After-merge cleanup: adjust the test to work in 10.0

For the original test in 10.0 it was not really important if
find_user_wild() or find_user_exact() is used in sp_grant_privileges().
sp-security.test passed with either of them.

Fixing the test so it reliably fails with find_user_wild()
and pass with find_user_exact().
This commit is contained in:
Alexander Barkov
2018-09-21 09:32:17 +04:00
parent 80bcb05b24
commit d533f6d58b
2 changed files with 13 additions and 2 deletions

View File

@ -618,7 +618,9 @@ SELECT 1 latin1 latin1_swedish_ci latin1_swedish_ci
DROP USER user2@localhost;
DROP DATABASE db1;
create user foo@local_ost;
create user foo@`local\_ost` identified by 'nevermore';
create user foo@`local\_ost`;
update mysql.user set plugin='foobar' where host='local\\_ost';
flush privileges;
create database foodb;
grant create routine on foodb.* to foo@local_ost;
select user(), current_user();