Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

2.3.18.21 NdbBlob::truncate()

Description.  This method is used to truncate a blob to a given length.

Signature. 

int truncate
    (
      Uint64 length = 0
    )

Parameters.  truncate() takes a single parameter which specifies the new length to which the blob is to be truncated. This method has no effect if length is greater than the blob's current length (which you can check using getLength()).

Return value.  0 on success, -1 on failure.


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.