EPUB | CHM | PDF

TMySQLDatabase.Methods.Rollback

Top Previous Next

Cancels all updates, insertions, and deletions for the current transaction and ends the transaction.

Syntax:

procedure Rollback;

Description:

Call Rollback to cancel all updates, insertions, and deletions for the current transaction and to end the transaction. The current transaction is the last transaction started by calling StartTransaction.

note Before calling Rollback, an application may check the status of the InTransaction property. If an application calls Rollback and there is no current transaction, an exception is raised.

See also: Commit, StartTransaction methods InTransaction property