summaryrefslogtreecommitdiff
path: root/mysql-test/r/grant.result
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-01-09 10:31:07 +0100
committerunknown <msvensson@neptunus.(none)>2006-01-09 10:31:07 +0100
commit16257e8b356c105fcc9fa8c8851338da60ece8f2 (patch)
tree788f8e7da96bac419a2f9810c1c6b3ffd55af3ca /mysql-test/r/grant.result
parentc2ac089167ac158aff1318cdb94c55a48fae34a5 (diff)
downloadmariadb-git-16257e8b356c105fcc9fa8c8851338da60ece8f2.tar.gz
Bug #15598 Server crashes in specific case during setting new password
- When acl_user->host.hostname is NULL compare it as "" mysql-test/r/grant.result: Test user with host '' mysql-test/t/grant.test: Test user with host '' sql/sql_acl.cc: If acl_user->host.hostname is NULL compare it as ""
Diffstat (limited to 'mysql-test/r/grant.result')
-rw-r--r--mysql-test/r/grant.result9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/r/grant.result b/mysql-test/r/grant.result
index 0a406c1ffc2..13593ec2a88 100644
--- a/mysql-test/r/grant.result
+++ b/mysql-test/r/grant.result
@@ -464,3 +464,12 @@ show grants for root@localhost;
Grants for root@localhost
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
set names latin1;
+insert into mysql.user (host, user) values ('', 'mysqltest_7');
+flush privileges;
+set password for mysqltest_7@ = password('systpass');
+show grants for mysqltest_7@;
+Grants for mysqltest_7@
+GRANT USAGE ON *.* TO 'mysqltest_7'@'' IDENTIFIED BY PASSWORD '*2FB071A056F9BB745219D9C876814231DAF46517'
+drop user mysqltest_7@;
+show grants for mysqltest_7@;
+ERROR 42000: There is no such grant defined for user 'mysqltest_7' on host ''