diff options
author | unknown <andrey@lmy004.> | 2006-01-26 21:21:21 +0100 |
---|---|---|
committer | unknown <andrey@lmy004.> | 2006-01-26 21:21:21 +0100 |
commit | 3881218dc9e7449138e8a02a20453fc7fa482b12 (patch) | |
tree | b6f7011cf4810c0a8d29a0d453334ed4cce27f10 /mysql-test/r | |
parent | 3c80db154909b00611fbfb4aaae36cffa7f6ad44 (diff) | |
download | mariadb-git-3881218dc9e7449138e8a02a20453fc7fa482b12.tar.gz |
fix for bug#16419 (Events: can't use timestamp in the schedule)
WL #1034 (Internal CRON)
mysql-test/r/events.result:
update test result
mysql-test/t/events.test:
add tests
sql/event_timed.cc:
- remove stupid check of val_int()
- fix for bug #16419 (Events: can't use timestamp in the schedule)
=> don't use val_int() but only get_date() and use the date!
sql/share/errmsg.txt:
- fix an error message, one more "einen"
sql/sql_yacc.yy:
- handle new return value of event_timed::init_execute_at()
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/events.result | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/r/events.result b/mysql-test/r/events.result index c3b94e580c2..cffeb8445c9 100644 --- a/mysql-test/r/events.result +++ b/mysql-test/r/events.result @@ -40,6 +40,15 @@ count(*) 0 drop event event3; drop table t_event3; +create event e_26 on schedule at '2017-01-01 00:00:00' disabled do set @a = 5; +select db, name, body, definer, convert_tz(execute_at, 'UTC', 'SYSTEM'), on_completion from mysql.event; +db name body definer convert_tz(execute_at, 'UTC', 'SYSTEM') on_completion +events_test e_26 set @a = 5 root@localhost 2017-01-01 00:00:00 DROP +drop event e_26; +create event e_26 on schedule at NULL disabled do set @a = 5; +ERROR HY000: Incorrect AT value: 'NULL' +create event e_26 on schedule at 'definitely not a datetime' disabled do set @a = 5; +ERROR HY000: Incorrect AT value: 'definitely not a datetime' set names utf8; create event задачка on schedule every 123 minute starts now() ends now() + interval 1 month do select 1; drop event задачка; |