Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.6.22 Event::setTable()

Description.  This method defines a table on which events are to be detected.

Note

By default, event detection takes place on all columns in the table. Use addEventColumn() to override this behavior. For details, see Section 2.3.6.1, “Event::addEventColumn()”.

Signature. 

void setTable
    (
      const NdbDictionary::Table& table
    )

NDB 7.2.14, NDB 7.3.3, and later NDB Cluster releases support the use of a pointer with this method, as shown here:

void setTable
    (
      const NdbDictionary::Table*; table
    )

When so used, this version of setTable() returns -1 if the table pointer is NULL. (Bug #16329082)

Parameters.  This method requires a single parameter, a reference to the table (see Section 2.3.37, “The Table Class”) on which events are to be detected. NDB 7.2.14, NDB 7.3.3, and later: A reference or a pointer to the table can be used.

Return value.  None. NDB 7.2.14, NDB 7.3.3, and later: -1, if a null table pointer is used.


User Comments
Sign Up Login You must be logged in to post a comment.