summaryrefslogtreecommitdiff
path: root/mysql-test/t/skip_grants.test
diff options
context:
space:
mode:
authorunknown <thek@kpdesk.mysql.com>2007-03-16 14:57:02 +0100
committerunknown <thek@kpdesk.mysql.com>2007-03-16 14:57:02 +0100
commit2b2fb67460475e60652730520d0a69675565f706 (patch)
treeae8ffb099aec21edea39f559150d8b7a203720a7 /mysql-test/t/skip_grants.test
parent469282461cb3ed1e0bd0b7bb9d4745eec5d6c58a (diff)
downloadmariadb-git-2b2fb67460475e60652730520d0a69675565f706.tar.gz
Bug#26807 "set global event_scheduler=1" and --skip-grant-tables crashes server
- Crash occured because Event engine is only initialized if ACLs are used but not properly marked as disabled. - The patch is to mark the Event engine as DISABLED if no ACLs are used to avoid access of uninitialized variables. mysql-test/r/skip_grants.result: Added test case mysql-test/t/skip_grants.test: Added test case
Diffstat (limited to 'mysql-test/t/skip_grants.test')
-rw-r--r--mysql-test/t/skip_grants.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/skip_grants.test b/mysql-test/t/skip_grants.test
index 6dda97fcf8a..c8ee3490552 100644
--- a/mysql-test/t/skip_grants.test
+++ b/mysql-test/t/skip_grants.test
@@ -108,3 +108,10 @@ DROP PROCEDURE p3;
DROP FUNCTION f1;
DROP FUNCTION f2;
DROP FUNCTION f3;
+
+#
+# Bug #26807 "set global event_scheduler=1" and --skip-grant-tables crashes server
+#
+--error ER_OPTION_PREVENTS_STATEMENT
+set global event_scheduler=1;
+