Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.4.14 Dictionary::dropEvent()

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

Signature. 

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
Sign Up Login You must be logged in to post a comment.