Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual Dictionary::dropEvent()

Description.  This method drops an event, given a reference to an Event object.


int dropEvent
      const char* name,
      int         force = 0

Parameters.  This method takes two parameters:

  • The name of the event to be dropped, as a string.

  • By default, dropEvent() fails if the event specified does not exist. You can override this behavior by passing any nonzero value for the (optional) force argument; in this case no check is made as to whether there actually is such an event, and an error is returned only if the event exists but it was for whatever reason not possible to drop it.

Return value.  0 on success, -1 on failure.

User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.