@@ -32,7 +32,6 @@ import (
3232var _ sql.Node = (* CreateEvent )(nil )
3333var _ sql.Expressioner = (* CreateEvent )(nil )
3434var _ sql.Databaser = (* CreateEvent )(nil )
35- var _ sql.EventSchedulerStatement = (* CreateEvent )(nil )
3635
3736type CreateEvent struct {
3837 ddlNode
@@ -258,13 +257,6 @@ func (c *CreateEvent) RowIter(ctx *sql.Context, _ sql.Row) (sql.RowIter, error)
258257 }, nil
259258}
260259
261- // WithEventScheduler is used to notify EventSchedulerStatus to update the events list for CREATE EVENT.
262- func (c * CreateEvent ) WithEventScheduler (scheduler sql.EventScheduler ) sql.Node {
263- nc := * c
264- nc .scheduler = scheduler
265- return & nc
266- }
267-
268260// GetEventDefinition returns an EventDefinition object with all of its fields populated from the details
269261// of this CREATE EVENT statement.
270262func (c * CreateEvent ) GetEventDefinition (ctx * sql.Context , eventCreationTime , lastAltered , lastExecuted time.Time , tz string ) (sql.EventDefinition , error ) {
@@ -583,7 +575,6 @@ func (ost *OnScheduleTimestamp) EvalTime(ctx *sql.Context, tz string) (time.Time
583575
584576var _ sql.Node = (* DropEvent )(nil )
585577var _ sql.Databaser = (* DropEvent )(nil )
586- var _ sql.EventSchedulerStatement = (* DropEvent )(nil )
587578
588579type DropEvent struct {
589580 ddlNode
@@ -670,10 +661,3 @@ func (d *DropEvent) WithDatabase(database sql.Database) (sql.Node, error) {
670661 nde .Db = database
671662 return & nde , nil
672663}
673-
674- // WithEventScheduler is used to notify EventSchedulerStatus to update the events list for DROP EVENT.
675- func (d * DropEvent ) WithEventScheduler (scheduler sql.EventScheduler ) sql.Node {
676- nd := * d
677- nd .scheduler = scheduler
678- return & nd
679- }
0 commit comments