diff options
author | unknown <thek@adventure.(none)> | 2008-03-25 12:52:55 +0100 |
---|---|---|
committer | unknown <thek@adventure.(none)> | 2008-03-25 12:52:55 +0100 |
commit | a3126bfc2ecdbe321ff05e5810e2eb6b631d02ca (patch) | |
tree | a0f34db532da26c7888c742adb24d17259bb872e /mysql-test/t | |
parent | 0769fe559036512506736768fb31ddb0482ac2e6 (diff) | |
download | mariadb-git-a3126bfc2ecdbe321ff05e5810e2eb6b631d02ca.tar.gz |
Bug#33275 Server crash when creating temporary table mysql.user
When creating a temporary table that uses the same name as the mysql
privs table the server would crash on FLUSH PRIVILEGES.
This patches corrects the problem by setting a flag to ignore any
temporary table when trying to reload the privileges.
mysql-test/r/grant.result:
Test for checking shadowing of privilege tables
mysql-test/t/grant.test:
Test for checking shadowing of privilege tables
sql/sql_acl.cc:
Set flag for ignoring temporary tables when trying to reload privileges.
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/grant.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/grant.test b/mysql-test/t/grant.test index ed95d90c8f8..93c416133e8 100644 --- a/mysql-test/t/grant.test +++ b/mysql-test/t/grant.test @@ -1153,4 +1153,11 @@ DROP DATABASE db27878; use test; DROP TABLE t1; +--echo # +--echo # Bug#33275 Server crash when creating temporary table mysql.user +--echo # +CREATE TEMPORARY TABLE mysql.user (id INT); +FLUSH PRIVILEGES; +DROP TABLE mysql.user; + --echo End of 5.0 tests |