diff options
Diffstat (limited to 'mysql-test/main/events_skip_grant_tables.test')
-rw-r--r-- | mysql-test/main/events_skip_grant_tables.test | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/main/events_skip_grant_tables.test b/mysql-test/main/events_skip_grant_tables.test new file mode 100644 index 00000000000..b19178294b8 --- /dev/null +++ b/mysql-test/main/events_skip_grant_tables.test @@ -0,0 +1,18 @@ +# Can't test with embedded server that doesn't support grants +-- source include/not_embedded.inc +call mtr.add_suppression("Event Scheduler will not function when starting with --skip-grant-tables or --bootstrap."); + +# [MARIADB-29827] Verify that if server is started with +# --event-scheduler=ON --skip-grant-tables, we get an error +# with a distinct explanation that the latter disables the former. + +--error ER_EVENTS_NO_ACL +CREATE EVENT test ON SCHEDULE AT CURRENT_TIMESTAMP DO DO NULL; + +# Although --event-scheduler=ON was specified (see -master.opt), it should +# have been changed to 'DISABLED' at startup. +select (@@global.event_scheduler='DISABLED') as expect_1; + +# Verify that we cannot (re)enable event scheduler +--error ER_OPTION_PREVENTS_STATEMENT +set global event_scheduler=1; |