summaryrefslogtreecommitdiff
path: root/sql/event_queue.h
diff options
context:
space:
mode:
authorkroki/tomash@moonlight.home <>2007-03-16 17:31:07 +0300
committerkroki/tomash@moonlight.home <>2007-03-16 17:31:07 +0300
commit6d8f6b5bfd6351142164b1f85b613ea133d478d3 (patch)
tree8922072c4b428d1e321673d0ec9e460b316a9c07 /sql/event_queue.h
parent245668efb034aa55a5c34978f9e7a081dabb1ea2 (diff)
downloadmariadb-git-6d8f6b5bfd6351142164b1f85b613ea133d478d3.tar.gz
BUG#16420: Events: timestamps become UTC
BUG#26429: SHOW CREATE EVENT is incorrect for an event that STARTS NOW() BUG#26431: Impossible to re-create an event from backup if its STARTS clause is in the past WL#3698: Events: execution in local time zone The problem was that local times specified by the user in AT, STARTS and ENDS of CREATE EVENT/ALTER EVENT statement were converted to UTC, and the original time zone was forgotten. This way, event scheduler couldn't honor Daylight Saving Time shifts, and times shown to the user were also in UTC. Additionally, CREATE EVENT didn't allow times in the past, thus preventing straightforward event restoration from old backups. This patch reworks event scheduler time computations, performing them in the time zone associated with the event. Also it allows times to be in the past. The patch adds time_zone column to mysql.event table. NOTE: The patch is almost final, but the bug#9953 should be pushed first.
Diffstat (limited to 'sql/event_queue.h')
-rw-r--r--sql/event_queue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/event_queue.h b/sql/event_queue.h
index a1237e1b52c..338a6c8f903 100644
--- a/sql/event_queue.h
+++ b/sql/event_queue.h
@@ -86,7 +86,7 @@ protected:
/* The sorted queue with the Event_queue_element objects */
QUEUE queue;
- TIME next_activation_at;
+ my_time_t next_activation_at;
uint mutex_last_locked_at_line;
uint mutex_last_unlocked_at_line;