Sign in Join
FPDoc Onlineexperiment

TSQLTransaction.CommitRetaining procedure

Member of TSQLTransactionpublicIn unit SQLDB

Commit the transaction, retain transaction context.

Declaration

pascal
procedure CommitRetaining; override

Description

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

After this, the transaction is still active. To commit data and deactivate the transaction, execute Commit instead.

Errors

Executing CommitRetaining 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.