Subject | Re: [IBO] Comitting |
---|---|
Author | Helen Borrie |
Post date | 2003-02-12T02:54:18Z |
At 03:08 AM 12/02/2003 +0100, you wrote:
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
>HiYes, set Autocommit property of the TIBODatabase to False and refer to
>
>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?
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