* int insertTuple(); *****************************************************************************/
| 36 | * int insertTuple(); |
| 37 | *****************************************************************************/ |
| 38 | int 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 | *****************************************************************************/ |