MCPcopy Create free account
hub / github.com/Shannon-Data/ShannonBase / insertTuple

Method insertTuple

storage/ndb/src/ndbapi/NdbOperationDefine.cpp:38–53  ·  view source on GitHub ↗

* int insertTuple(); *****************************************************************************/

Source from the content-addressed store, hash-verified

36 * int insertTuple();
37 *****************************************************************************/
38int NdbOperation::insertTuple() {
39 NdbTransaction *tNdbCon = theNdbCon;
40 int tErrorLine = theErrorLine;
41 if (theStatus == Init) {
42 theStatus = OperationDefined;
43 theOperationType = InsertRequest;
44 tNdbCon->theSimpleState = 0;
45 theErrorLine = tErrorLine++;
46 theLockMode = LM_Exclusive;
47 m_abortOption = AbortOnError;
48 return 0;
49 } else {
50 setErrorCode(4200);
51 return -1;
52 } // if
53} // NdbOperation::insertTuple()
54/******************************************************************************
55 * int updateTuple();
56 *****************************************************************************/

Callers 3

ndbjtieInsertMethod · 0.95
insertMethod · 0.95
getInsertOperationMethod · 0.95

Calls 1

setErrorCodeFunction · 0.85

Tested by 2

ndbjtieInsertMethod · 0.76
insertMethod · 0.76