Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.18.14 NdbBlob::getVersion()

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

Signature. 

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.

Note

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


User Comments
Sign Up Login You must be logged in to post a comment.