Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.37.66 Table::validate()

Description.  This method validates the definition for a new table prior to its being created, and executes the Table::aggregate() method, as well as performing additional checks. validate() is called automatically when a table is created or retrieved. For this reason, it is usually not necessary to call aggregate() or validate() directly.

Warning

Even after the validate() method is called, there may still exist errors which can be detected only by the NDB kernel when the table is actually created.

Note

This method was added in MySQL 5.1.12 (see Bug #21690).

Signature. 

int validate
    (
      struct NdbError& error
    )

Parameters.  A reference to an NdbError object.

Return value.  An integer, whose value is 0 on success, and -1 if the table is in an inconsistent state. In the latter case, the error is also set.


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