Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.24.9 NdbInterpretedCode::branch_col_eq()

Description.  This method compares a table column value with an arbitrary constant and jumps to the specified program label if the values are equal.

Signature. 

int branch_col_eq
    (
      const void* val,
      Uint32 len,
      Uint32 attrId,
      Uint32 Label
    )

Parameters.  This method takes the following four parameters:

  • A constant value (val)

  • The length of the value (in bytes)

  • The attribute ID of the table column whose value is to be compared with val

  • A Label (previously defined using def_label()) to jump to if the compared values are equal

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


User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.