summaryrefslogtreecommitdiff
path: root/mysql-test/t/grant.test
diff options
context:
space:
mode:
authorSergey Glukhov <Sergey.Glukhov@sun.com>2008-12-24 19:14:59 +0400
committerSergey Glukhov <Sergey.Glukhov@sun.com>2008-12-24 19:14:59 +0400
commit026e9c36766ba81d728e189555b8a15f0d4c52ba (patch)
tree00fbad8b415e76e90185da6aff202f3575928e51 /mysql-test/t/grant.test
parent59543e9f80a1947aefa069730be388d8fbcb9ec7 (diff)
downloadmariadb-git-026e9c36766ba81d728e189555b8a15f0d4c52ba.tar.gz
Bug#41456 SET PASSWORD hates CURRENT_USER()
init user->user struct with thd->security_ctx->priv_user context if user->user is not initializied
Diffstat (limited to 'mysql-test/t/grant.test')
-rw-r--r--mysql-test/t/grant.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/grant.test b/mysql-test/t/grant.test
index e4b95502143..14c5879d007 100644
--- a/mysql-test/t/grant.test
+++ b/mysql-test/t/grant.test
@@ -1175,4 +1175,11 @@ drop view v1;
drop table test;
drop function test_function;
+#
+# Bug#41456 SET PASSWORD hates CURRENT_USER()
+#
+SELECT CURRENT_USER();
+SET PASSWORD FOR CURRENT_USER() = PASSWORD("admin");
+SET PASSWORD FOR CURRENT_USER() = PASSWORD("");
+
--echo End of 5.0 tests