summaryrefslogtreecommitdiff
path: root/mysql-test/r/sp_notembedded.result
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2015-02-17 18:07:56 +0100
committerSergei Golubchik <sergii@pisem.net>2015-02-17 18:07:56 +0100
commit44cf4d675199bac0a9c23d38a68303e921c82cbe (patch)
tree3c8c27e7f584b123f7cd36fc5baabc63748db5a2 /mysql-test/r/sp_notembedded.result
parent865b83e9a4b834b1f58e60db4709031bef823f4a (diff)
downloadmariadb-git-44cf4d675199bac0a9c23d38a68303e921c82cbe.tar.gz
fix a case where automatic procedure grant was changing user's password
phase out make_password_from_salt() to be removed in 10.1
Diffstat (limited to 'mysql-test/r/sp_notembedded.result')
-rw-r--r--mysql-test/r/sp_notembedded.result19
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/r/sp_notembedded.result b/mysql-test/r/sp_notembedded.result
index 410441b63e3..3cc4ff4238b 100644
--- a/mysql-test/r/sp_notembedded.result
+++ b/mysql-test/r/sp_notembedded.result
@@ -284,4 +284,23 @@ DROP EVENT teste_bug11763507;
# ------------------------------------------------------------------
# -- End of 5.1 tests
# ------------------------------------------------------------------
+grant create routine on test.* to foo1@localhost identified by 'foo';
+update mysql.user set password = replace(password, '*', '-') where user='foo1';
+show grants;
+Grants for foo1@localhost
+GRANT USAGE ON *.* TO 'foo1'@'localhost' IDENTIFIED BY PASSWORD '*F3A2A51A9B0F2BE2468926B4132313728C250DBF'
+GRANT CREATE ROUTINE ON `test`.* TO 'foo1'@'localhost'
+flush privileges;
+show grants;
+Grants for foo1@localhost
+GRANT USAGE ON *.* TO 'foo1'@'localhost' IDENTIFIED BY PASSWORD '-F3A2A51A9B0F2BE2468926B4132313728C250DBF'
+GRANT CREATE ROUTINE ON `test`.* TO 'foo1'@'localhost'
+create procedure spfoo() select 1;
+show grants;
+Grants for foo1@localhost
+GRANT USAGE ON *.* TO 'foo1'@'localhost' IDENTIFIED BY PASSWORD '-F3A2A51A9B0F2BE2468926B4132313728C250DBF'
+GRANT CREATE ROUTINE ON `test`.* TO 'foo1'@'localhost'
+GRANT EXECUTE, ALTER ROUTINE ON PROCEDURE `test`.`spfoo` TO 'foo1'@'localhost'
+drop procedure spfoo;
+drop user foo1@localhost;
set @@global.concurrent_insert= @old_concurrent_insert;