Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.37.2 Table::aggregate()

Description.  This method computes aggregate data for the table. It is required in order for aggregate methods such as getNoOfPrimaryKeys() to work properly before the table has been created and retrieved via getTableId().

Note

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

Signature. 

int aggregate
    (
      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.