I've a question about a component TMyTable.
This is the example:
if not Session.InTransaction then
Session.StartTransaction;
TablaMovimientos.Append;
if (frmRecordMovimientos.ShowModal = mrOK) then
begin
Try
TablaMovimientos.Post;
TablaMovimientos.ApplyUpdates;
Session.Commit;
except
if Session.InTransaction then
begin
TablaMovimientos.RestoreUpdates;
Session.Rollback;
raise;
end;
end;
TablaMovimientos.CommitUpdates;
end else
begin
TablaMovimientos.RestoreUpdates;
Session.Rollback;
TablaMovimientos.CommitUpdates;
end;
frmRecordMovimientos.Free;
Is necesary to do CommitUpdates after Roolback?
Thank you for your support.