Subject | Re: Half-commit? |
---|---|
Author | hrethantos |
Post date | 2004-04-05T12:59:55Z |
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
wrote:
> At 11:03 AM 5/04/2004 +0000, you wrote:executed
> >Hi Everyone.
> >
> >What would happen if there is something like a power failure while
> >ib is busy committing data?
> >
> >I experienced a problem a few days ago: A Delphi procedure
> >a single stored procedure (this sp calls more stored proceduresetc.)
> >application
> >Some error had to happen because the process was not completed.
> >*Some* of the data was commited, though. Is it maybe possible that
> >the Exception class in Delphi didn't catch an SQL error, or
> >something?
>
> It would make no difference. If an exception happened, the
> would have to fix the error for a subsequent commit to succeed.If there
> was a power failure, anything that was executed but not committedwould
> have been left in that state for a while...but eventually it wouldhave
> been just garbage collected.and left
>
> The important thing is that nothing gets "half-committed".
>
> It could NOT happen that a chain of embedded SPs got interrupted
> some work committed. There is just no mechanism for this tohappen. It
> didn't happen. If work was committed from that operation, thenall of the
> work in that transaction was committed.Thanx Helen.
>
> /heLen