mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-19265 Server should throw warning if event is created and event_scheduler = OFF
This commit is contained in:
@@ -3,9 +3,13 @@ include/master-slave.inc
|
||||
SET GLOBAL event_scheduler=off;
|
||||
CREATE TABLE t1 (a INT);
|
||||
CREATE EVENT ev1 ON SCHEDULE EVERY 1 SECOND DO INSERT INTO t1 VALUES (10);
|
||||
Warnings:
|
||||
Warning 1105 Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it.
|
||||
CREATE EVENT ev1 ON SCHEDULE EVERY 1 SECOND DO INSERT INTO t1 VALUES (11);
|
||||
ERROR HY000: Event 'ev1' already exists
|
||||
CREATE OR REPLACE EVENT ev1 ON SCHEDULE EVERY 1 SECOND DO INSERT INTO t1 VALUES (11);
|
||||
Warnings:
|
||||
Warning 1105 Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it.
|
||||
SELECT EVENT_NAME,STATUS,EVENT_DEFINITION FROM INFORMATION_SCHEMA.EVENTS;
|
||||
EVENT_NAME STATUS EVENT_DEFINITION
|
||||
ev1 ENABLED INSERT INTO t1 VALUES (11)
|
||||
|
Reference in New Issue
Block a user