Changes between Version 19 and Version 20 of FDORfc61
- Timestamp:
- 05/30/11 07:54:14 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FDORfc61
v19 v20 86 86 == How to use this API == 87 87 88 Add a save point/Rollback to a save point: 88 The follwing code illustrates how to add a save point, release a save point and rollback to a save point 89 89 {{{ 90 90 FdoPtr<FdoIInsert> insertCommand; 91 91 FdoPtr<FdoITransaction> transaction = connection->BeginTransaction(); 92 92 FdoStringP spName1 = transaction->AddSavePoint(L"Save_point_1"); 93 FdoStringP spName2 = transaction->AddSavePoint(L"Save_point_2"); 93 94 try{ 94 95 ...... … … 101 102 transaction->Rollback(spName1); 102 103 } 103 104 FdoStringP spName 2 = transaction->AddSavePoint(L"Save_point_2");104 transaction->ReleaseSavePoint(spName2); 105 FdoStringP spName3 = transaction->AddSavePoint(L"Save_point_3"); 105 106 FdoPtr<FdoIDelete> deleteCommand; 106 107 try{ … … 112 113 { 113 114 e->Release(); 114 transaction->Rollback(spName 2);115 transaction->Rollback(spName3); 115 116 } 116 117 transaction->Commit();