Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual NdbDictionary::setNull()

Description.  Set the null bit for the given column to the supplied value. The offset for the null bit is obtained from the passed NdbRecord object. If the attribute ID is not part of the NdbRecord, or if it is not nullable, this method returns an error (-1).


static int setNull
      const NdbRecord* record,
      char* row,
      Uint32 attrId,
      bool value

Parameters.  A pointer to the record (NdbRecord object) describing the row format; a pointer to the start of the row data; the attribute ID of the column (attrId); and the value to set the null bit to (true or false).

Return value.  Returns 0 on success; returns -1 if the attrId is not part of the record, or is not nullable.