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

Description.  This method compares a table column value with an arbitrary constant and jumps to the specified program label if the constant is less than the column value.


int branch_col_lt
      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 constant value is less than the column value

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