When we create a scheduled event in MySQL, the current sql_mode
is stored with the event. That causes the event to use the sql_mode
that was in effect at the time the event was created. Same with altering an event.
Therefore, if we change the sql_mode
after the event was created or altered, it won’t have any impact on the event. In other words, we can safely change our system’s sql_mode
without worrying about whether it’s going to mess up any existing scheduled events.