Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.24.37 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.

Signature. 

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.

Prior to NDB 7.2.1, ErrorCode defaulted to NDB error code 899 (Rowid already allocated). This value is still supported for backward compatibility. (Bug #16176006) 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.


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