diff options
author | unknown <andrey@lmy004.> | 2006-02-24 14:10:24 +0100 |
---|---|---|
committer | unknown <andrey@lmy004.> | 2006-02-24 14:10:24 +0100 |
commit | a7d13b9dbd1c1bd14935d414092c820e9f16ba44 (patch) | |
tree | 92a3836074caac52fd91f8e6499a1247e77517d7 /mysql-test/t/events_microsec.test | |
parent | d587a26bfa6f43887f0e1532ceedea18c00e547b (diff) | |
download | mariadb-git-a7d13b9dbd1c1bd14935d414092c820e9f16ba44.tar.gz |
add this file to revision control. there was not new line at the end of the file
fix for bug#16411
Diffstat (limited to 'mysql-test/t/events_microsec.test')
-rw-r--r-- | mysql-test/t/events_microsec.test | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/mysql-test/t/events_microsec.test b/mysql-test/t/events_microsec.test new file mode 100644 index 00000000000..530806c8dee --- /dev/null +++ b/mysql-test/t/events_microsec.test @@ -0,0 +1,54 @@ +create database if not exists events_test; +use events_test; + +--error 1235 +CREATE EVENT micro_test ON SCHEDULE EVERY 100 MICROSECOND DO SELECT 1; +--error 1235 +CREATE EVENT micro_test ON SCHEDULE EVERY 100 DAY_MICROSECOND DO SELECT 1; +--error 1235 +CREATE EVENT micro_test ON SCHEDULE EVERY 100 HOUR_MICROSECOND DO SELECT 1; +--error 1235 +CREATE EVENT micro_test ON SCHEDULE EVERY 100 MINUTE_MICROSECOND DO SELECT 1; +--error 1235 +CREATE EVENT micro_test ON SCHEDULE EVERY 100 SECOND_MICROSECOND DO SELECT 1; + +--echo "Now create normal event and change it on SQL level" +CREATE EVENT micro_test2 ON SCHEDULE EVERY 1 MONTH DO SELECT 1; +UPDATE mysql.event SET interval_field='MICROSECOND' WHERE db=database() AND definer=user() AND name='micro_test2'; +--error 1235 +SHOW CREATE EVENT micro_test2; +SET GLOBAL event_scheduler=0; +--sleep 1 +--echo "Should not be running:" +SHOW VARIABLES like 'event_scheduler'; +UPDATE mysql.event SET interval_field='DAY_MICROSECOND' WHERE db=database() AND definer=user() AND name='micro_test2'; +--error 1235 +SHOW CREATE EVENT micro_test2; +SET GLOBAL event_scheduler=0; +--sleep 1 +--echo "Should not be running:" +SHOW VARIABLES like 'event_scheduler'; +UPDATE mysql.event SET interval_field='SECOND_MICROSECOND' WHERE db=database() AND definer=user() AND name='micro_test2'; +--error 1235 +SHOW CREATE EVENT micro_test2; +SET GLOBAL event_scheduler=0; +--sleep 1 +--echo "Should not be running:" +SHOW VARIABLES like 'event_scheduler'; +UPDATE mysql.event SET interval_field='HOUR_MICROSECOND' WHERE db=database() AND definer=user() AND name='micro_test2'; +--error 1235 +SHOW CREATE EVENT micro_test2; +SET GLOBAL event_scheduler=0; +--sleep 1 +--echo "Should not be running:" +SHOW VARIABLES like 'event_scheduler'; +UPDATE mysql.event SET interval_field='MINUTE_MICROSECOND' WHERE db=database() AND definer=user() AND name='micro_test2'; +--error 1235 +SHOW CREATE EVENT micro_test2; +SET GLOBAL event_scheduler=0; +--sleep 1 +--echo "Should not be running:" +SHOW VARIABLES like 'event_scheduler'; +DROP EVENT micro_test2; + +drop database events_test; |