Changes between Version 19 and Version 20 of FDORfc61


Ignore:
Timestamp:
May 30, 2011, 7:54:14 AM (13 years ago)
Author:
samwang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FDORfc61

    v19 v20  
    8686== How to use this API ==
    8787
    88 Add a save point/Rollback to a save point:
     88The follwing code illustrates how to add a save point, release a save point and rollback to a save point
    8989{{{
    9090FdoPtr<FdoIInsert> insertCommand;
    9191FdoPtr<FdoITransaction> transaction = connection->BeginTransaction();
    9292FdoStringP spName1 = transaction->AddSavePoint(L"Save_point_1");
     93FdoStringP spName2 = transaction->AddSavePoint(L"Save_point_2");
    9394try{
    9495......
     
    101102    transaction->Rollback(spName1);
    102103}
    103 
    104 FdoStringP spName2 = transaction->AddSavePoint(L"Save_point_2");
     104transaction->ReleaseSavePoint(spName2);
     105FdoStringP spName3 = transaction->AddSavePoint(L"Save_point_3");
    105106FdoPtr<FdoIDelete> deleteCommand;
    106107try{
     
    112113{
    113114    e->Release();
    114     transaction->Rollback(spName2);
     115    transaction->Rollback(spName3);
    115116}
    116117transaction->Commit();