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.