Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual NdbBlob::getVersion()

Description.  This method is used to distinguish whether a blob operation is statement-based or event-based.


void getVersion
      int& version

Parameters.  This method takes a single parameter, an integer reference to the blob version (operation type).

Return value.  One of the following three values:

  • -1: This is a normal (statement-based) blob.

  • 0: This is an event-operation based blob, following a change in its data.

  • 1: This is an event-operation based blob, prior to any change in its data.


getVersion() is always successful, assuming that it is invoked as a method of a valid NdbBlob instance.

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.