Skip to content

Commit

Permalink
Bug#25335897: Modified the year of the date value from 2017 to 2037 i…
Browse files Browse the repository at this point in the history
…n first event.
  • Loading branch information
Horst Hunger committed Jan 3, 2017
1 parent e00810b commit e7a3ccf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mysql-test/r/events_2.result
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
drop database if exists events_test;
create database events_test;
use events_test;
create event e_26 on schedule at '2017-01-01 00:00:00' disable do set @a = 5;
create event e_26 on schedule at '2037-01-01 00:00:00' disable 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
events_test e_26 set @a = 5 root@localhost 2037-01-01 00:00:00 DROP
drop event e_26;
create event e_26 on schedule at NULL disable do set @a = 5;
ERROR HY000: Incorrect AT value: 'NULL'
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/t/events_2.test
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use events_test;
# mysql.event intact checking end
#

create event e_26 on schedule at '2017-01-01 00:00:00' disable do set @a = 5;
create event e_26 on schedule at '2037-01-01 00:00:00' disable do set @a = 5;
select db, name, body, definer, convert_tz(execute_at, 'UTC', 'SYSTEM'), on_completion from mysql.event;
drop event e_26;
--error ER_WRONG_VALUE
Expand Down

0 comments on commit e7a3ccf

Please sign in to comment.