summaryrefslogtreecommitdiff
path: root/mysql-test/r/grant.result
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-06-20 10:21:35 -0700
committerunknown <jimw@mysql.com>2005-06-20 10:21:35 -0700
commit9e78db81b04cbe271c01a384951ef2f3845027c3 (patch)
treea4abbba60a9ce634a6c87e0ebbebf7d2abb41134 /mysql-test/r/grant.result
parent79444fa5355609f51061f03229c7b9d18a7fd5e6 (diff)
downloadmariadb-git-9e78db81b04cbe271c01a384951ef2f3845027c3.tar.gz
Fix crash when an entry was added to the mysql.tables_priv
table with an empty hostname. (Bug #11330) mysql-test/r/grant.result: Update results mysql-test/t/grant.test: Add new regression test sql/sql_acl.cc: Don't call strlen() on a NULL pointer.
Diffstat (limited to 'mysql-test/r/grant.result')
-rw-r--r--mysql-test/r/grant.result4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/r/grant.result b/mysql-test/r/grant.result
index bb37480aaf8..3a793ef55e4 100644
--- a/mysql-test/r/grant.result
+++ b/mysql-test/r/grant.result
@@ -435,3 +435,7 @@ ERROR 42000: INSERT,CREATE command denied to user 'mysqltest_1'@'localhost' for
revoke all privileges on mysqltest.t1 from mysqltest_1@localhost;
delete from mysql.user where user=_binary'mysqltest_1';
drop database mysqltest;
+use mysql;
+insert into tables_priv values ('','mysqltest_1','test_table','test_grantor','',CURRENT_TIMESTAMP,'Select','Select');
+flush privileges;
+delete from tables_priv where host = '' and user = 'mysqltest_1';