Subject Re: [IBO] Comitting
Author Helen Borrie
At 03:08 AM 12/02/2003 +0100, you wrote:
>Hi
>
>I use the TIBODataset components. I mostly use the AutoCommit for
>conveniency. Now, I would like set this of for certain operations and
>then decide to commit or rollback. Is this possible? Are there things
>for which I've to check?

Yes, set Autocommit property of the TIBODatabase to False and refer to
transaction (TIBOTransaction) properties of the TIBODatabase (which embeds
a single transaction). That is, treat the TIBODatabase as if it were a
TIBOTransaction.

When you call Post, you won't notice any difference, since it does
everything it did before *except* commit the transaction.

You might need to check whether the transaction is started before calling
Commit or Rollback, since you will get a forced error if the transaction is
not active. Handle exceptions as before.

Helen