summaryrefslogtreecommitdiff
path: root/mysql-test/r/grant.result
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-01-09 17:12:26 +0100
committerunknown <msvensson@neptunus.(none)>2006-01-09 17:12:26 +0100
commit9cfcc3252140fcaaa8c84124bee839a5702759e5 (patch)
tree7d63987324993a0188b13ff432e3c26b8e1315a2 /mysql-test/r/grant.result
parent998b7dca54a73bd56a602b309b053a618d5218cd (diff)
downloadmariadb-git-9cfcc3252140fcaaa8c84124bee839a5702759e5.tar.gz
Bug #15598 Server crashes in specific case during setting new password
- Comparing host string against NULL caused crash. - If host.hostname is NULL treat it as "" mysql-test/r/grant.result: Update test results mysql-test/t/grant.test: Add test for user with host ""
Diffstat (limited to 'mysql-test/r/grant.result')
-rw-r--r--mysql-test/r/grant.result18
1 files changed, 9 insertions, 9 deletions
diff --git a/mysql-test/r/grant.result b/mysql-test/r/grant.result
index 304294057d7..eea29161de8 100644
--- a/mysql-test/r/grant.result
+++ b/mysql-test/r/grant.result
@@ -437,15 +437,6 @@ delete from mysql.columns_priv where user="mysqltest_3";
flush privileges;
drop database mysqltest_1;
drop database mysqltest_2;
-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 ''
SHOW PRIVILEGES;
Privilege Context Comment
Alter Tables To alter the table
@@ -624,3 +615,12 @@ show grants for root@localhost;
Grants for root@localhost
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
set names latin1;
+create user mysqltest_7@;
+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@;
+flush privileges;
+show grants for mysqltest_7@;
+ERROR 42000: There is no such grant defined for user 'mysqltest_7' on host ''