summaryrefslogtreecommitdiff
path: root/mysql-test/t/skip_grants.test
diff options
context:
space:
mode:
authorunknown <gluh@mysql.com/eagle.(none)>2007-03-16 12:15:51 +0400
committerunknown <gluh@mysql.com/eagle.(none)>2007-03-16 12:15:51 +0400
commita51b7686000d01d488617b59f543b0cff5e223bb (patch)
treee73d5f2892a4f07c1cff856f7f8bd812f9f9ff33 /mysql-test/t/skip_grants.test
parentc6ab94bdf17340a57ec1f4575c644f27117b11cf (diff)
downloadmariadb-git-a51b7686000d01d488617b59f543b0cff5e223bb.tar.gz
Bug#26285 selecting information_schema crahes server
The crash happens when 'skip-grant-tables' is enabled. We skip the filling of I_S privilege tables if acl_cache is not initialized. mysql-test/r/skip_grants.result: test result mysql-test/t/skip_grants.test: test case sql/sql_acl.cc: skip filling of I_S privilege tables if acl_cache is not initialized
Diffstat (limited to 'mysql-test/t/skip_grants.test')
-rw-r--r--mysql-test/t/skip_grants.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/skip_grants.test b/mysql-test/t/skip_grants.test
index 6dda97fcf8a..75694672a17 100644
--- a/mysql-test/t/skip_grants.test
+++ b/mysql-test/t/skip_grants.test
@@ -108,3 +108,11 @@ DROP PROCEDURE p3;
DROP FUNCTION f1;
DROP FUNCTION f2;
DROP FUNCTION f3;
+
+#
+# Bug#26285 Selecting information_schema crahes server
+#
+select count(*) from information_schema.COLUMN_PRIVILEGES;
+select count(*) from information_schema.SCHEMA_PRIVILEGES;
+select count(*) from information_schema.TABLE_PRIVILEGES;
+select count(*) from information_schema.USER_PRIVILEGES;