The world's most popular open source database
Description. This method is used to update the current tuple.
Signature.
NdbOperation* updateCurrentTuple
(
void
)
or
NdbOperation* updateCurrentTuple
(
NdbTransaction* updateTrans
)
Beginning with MySQL Cluster NDB 6.2.3, it is also possible to
employ this method, when using NdbRecord
with scans, as shown here:
NdbOperation* updateCurrentTuple
(
NdbTransaction* takeOverTrans,
const NdbRecord* record,
const char* row,
const unsigned char* mask = 0
)
See Section 4.25, “The NdbRecord Interface”, for more
information.
Parameters. This method takes a single, optional parameter — the transaction that should perform the lock. If this is omitted, the transaction is the current one.
Parameters when using NdbRecord.
When using the NdbRecord interface
(beginning with MySQL Cluster NDB 6.2.3), this method takes
the following parameters, as described here:
The takeover transaction
(takeOverTrans).
The record
(NdbRecord object) referencing the
column used for the scan.
The row to read from. If no
attributes are to be read, set this equal to
NULL.
The mask pointer is optional.
If it is present, then only columns for which the
corresponding bit in the mask is set are retrieved by
the scan.
Return Value.
This method returns an NdbOperation object
or NULL. (See
Section 4.15, “The NdbOperation Class”.)

