Icon View Incident Report

Serious Serious
Reported By: Andy Grilk
Reported On: 3/23/2007
For: Version 1.02 Build 1
# 2310 Transactions Incorrectly Rolling Back Changes On Table Closes

I have the following code. When using this no data gets inserted into the given table.

function TdmLocalData.AddRecord(FileName: String; SQLCommand: String): Integer;
begin
  EDBDatabase.StartTransaction;
  try
    EDBQuery.SQL.Text := 'INSERT INTO ' + FileName + SQLCommand;
    EDBQuery.ExecSQL;
    Result := EDBQuery.RowsAffected;
    frmMain.ProgressBar.Position := frmMain.ProgressBar.Position + 1;
    EDBDatabase.Commit(True);
  except
    EDBDatabase.Rollback;
    raise;
  end;
  Application.ProcessMessages;
end;



Comments Comments
The issue was with ElevateDB closing the table and automatically rolling back the transaction on the table when the INSERT requested that the table be closed. It should have left the table open until the Commit or Rollback call.


Resolution Resolution
Fixed Problem on 3/25/2007 in version 1.03 build 1


Products Affected Products Affected
ElevateDB Additional Software and Utilities
ElevateDB VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image