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.

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.