Sign in Join
FPDoc Onlineexperiment

TSQLTransaction.Commit procedure

Member of TSQLTransactionpublicIn unit SQLDB

Commit the transaction, end transaction context.

Declaration

pascal
procedure Commit; override

Description

Commit commits an active transaction. The changes will be irreversibly written to the database.

After this, the transaction is deactivated and must be reactivated with the StartTransaction method. To commit data while retaining an active transaction, execute CommitRetaining instead.

Errors

Executing Commit when no transaction is active will result in an exception. A transaction must be started by calling StartTransaction. If the database backend reports an error, an exception is raised as well.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.