Subject | Re: [firebird-support] Transaction Management Failing? |
---|---|
Author | Dimitry Sibiryakov |
Post date | 2017-09-26T10:22:19Z |
26.09.2017 12:10, 'Robert Harris' robert@... [firebird-support] wrote:
exception happen between CommitTransaction and 'Done := true', you'll get duplicates.
You haven't described how InsertMyData works. If (by mistake) it uses AutoCommit - the
window where you logic can blow up is getting wider.
events.
--
WBR, SD.
> The logic is that straightforward. The InsertMyData inserts lines of an invoice or anyNot quite so. You don't write down what exception happen in exception handler. If any
> other customer transaction into ledgers, each identified by a transaction number. The
> problem is that when the issue occurs, multiple copies of the data end up in the database,
> which based on the above logic should not be possible.
exception happen between CommitTransaction and 'Done := true', you'll get duplicates.
You haven't described how InsertMyData works. If (by mistake) it uses AutoCommit - the
window where you logic can blow up is getting wider.
> It’s a really difficult one as it is totally random.Still you can turn audit on and (even logs will be enormous) find out exact sequence of
events.
--
WBR, SD.