diff options
author | jimw@mysql.com <> | 2005-06-20 10:21:35 -0700 |
---|---|---|
committer | jimw@mysql.com <> | 2005-06-20 10:21:35 -0700 |
commit | 4429756e536949a1c769f0a95f093c08ef937b5e (patch) | |
tree | a4abbba60a9ce634a6c87e0ebbebf7d2abb41134 /mysql-test/t | |
parent | b5b3b32d0a7e1577347f4250cb1407d16dbf1316 (diff) | |
download | mariadb-git-4429756e536949a1c769f0a95f093c08ef937b5e.tar.gz |
Fix crash when an entry was added to the mysql.tables_priv
table with an empty hostname. (Bug #11330)
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/grant.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/grant.test b/mysql-test/t/grant.test index 1c8fbe0ff0d..d80ef638e79 100644 --- a/mysql-test/t/grant.test +++ b/mysql-test/t/grant.test @@ -392,3 +392,11 @@ revoke all privileges on mysqltest.t1 from mysqltest_1@localhost; delete from mysql.user where user=_binary'mysqltest_1'; drop database mysqltest; +# +# Bug #11330: Entry in tables_priv with host = '' causes crash +# +connection default; +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'; |