Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual NdbInterpretedCode::interpret_exit_nok()

Description.  For scanning operations, this method is used to indicate that the current row should not be returned as part of the scan, and to cause the program should move on to the next row. It causes other types of operations to be aborted.


int interpret_exit_nok
      Uint32 ErrorCode = 626 //  HA_ERR_KEY_NOT_FOUND

Parameters.  This method takes a single (optional) parameter ErrorCode which . For a complete listing of NDB error codes, see Section 2.4.2, “NDB Error Codes: by Type”. If not supplied, defaults to 626 (HA_ERR_KEY_NOT_FOUND/Tuple did not exist. Applications should use error code 626 or another code in the range 6000 to 6999 inclusive.

For any values other than those mentioned here, the behavior of this method is undefined, and is subject to change at any time without prior notice.

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