summaryrefslogtreecommitdiff
path: root/sql/events.cc
diff options
context:
space:
mode:
authorunknown <dkatz@damien-katzs-computer.local>2007-10-22 15:16:43 -0400
committerunknown <dkatz@damien-katzs-computer.local>2007-10-22 15:16:43 -0400
commitc6e00be97f62ebcf9c10727ea637d57dc368dead (patch)
treec9fe74b90f4a51e9df17e09c9ba2bcc10318aead /sql/events.cc
parent7555c16adf2597958cb1295e3a46b6cef7cfccf0 (diff)
downloadmariadb-git-c6e00be97f62ebcf9c10727ea637d57dc368dead.tar.gz
Bug #31332 --event-scheduler option misbehaving
Changed the behaviour of the --event-scheduler option when used without an arguments. It now turns the option on. mysql-test/r/events_bugs.result: Test that --event-scheduler with no options in events_bugs-master.opt turns the option on. mysql-test/t/events_bugs.test: Test that --event-scheduler with no options in events_bugs-master.opt turns the option on. sql/events.cc: Changed the behaviour of the --event-scheduler option when used without an arguments. It now turns the option on. mysql-test/t/events_bugs-master.opt: Test that --event-scheduler with no options in events_bugs-master.opt turns the option on.
Diffstat (limited to 'sql/events.cc')
-rw-r--r--sql/events.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/events.cc b/sql/events.cc
index 1bfbc5d6645..67249b40c79 100644
--- a/sql/events.cc
+++ b/sql/events.cc
@@ -146,7 +146,7 @@ bool
Events::set_opt_event_scheduler(char *argument)
{
if (argument == NULL)
- opt_event_scheduler= Events::EVENTS_DISABLED;
+ opt_event_scheduler= Events::EVENTS_ON;
else
{
int type;