Description. This method locks the current tuple.
Signature. In MySQL 5.1 and later, this method can be called with an optional single parameter, in either of the two ways shown here:
NdbOperation* lockCurrentTuple ( void ) NdbOperation* lockCurrentTuple ( NdbTransaction* lockTrans )
The following signature is also supported for this method, when
NdbOperation *lockCurrentTuple ( NdbTransaction* takeOverTrans, const NdbRecord* record, char* row = 0, const unsigned char* mask = 0 )
NdbOperation *lockCurrentTuple ( NdbTransaction* takeOverTrans, const NdbRecord* record, char* row = 0, const unsigned char* mask = 0, const NdbOperation::OperationOptions* opts = 0, Uint32 sizeOfOptions = 0 )
Parameters (old style). 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
interface, this method takes these parameters, as described in
the following list:
The transaction (
takeOverTrans) that should perform the lock; when using
NdbRecordwith scans, this parameter is not optional.
NdbRecordreferenced by the scan. This is required, even if no records are being read.
rowfrom which to read. Set this to
NULLif no read is to occur.
maskpointer is optional. If it is present, then only columns for which the corresponding bit in the mask is set are retrieved by the scan.
optsargument can take on any of the following
If options are specified, their length (
sizeOfOptions) must be specified as well.
This method returns a pointer to an
NdbOperation object, or