Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- FDConnection1.StartTransaction;
- FDSchemaAdapter1.ApplyUpdates(0);
- FDQuery1.CommitUpdates;
- FDQuery2.CommitUpdates;
- FDConnection1.Commit;
- except on E: Exception do
- begin
- FDConnection1.Rollback;
- raise Exception.CreateFmt('Something went wrong. Error: %s', [E.Message]);
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement