Data.SqlExpr.TSQLConnection.CommitFreeAndNil

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CommitFreeAndNil(var Transaction: TDBXTransaction);

C++

void __fastcall CommitFreeAndNil(Data::Dbxcommon::TDBXTransaction* &Transaction);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TSQLConnection

Description

Commits an open transaction.

Call CommitFreeAndNil to save any changes made during the transaction described by Transactionand to end that transaction. Transaction is the TDBXTransaction instance returned by the BeginTransaction method when starting the transaction.

If the specified transaction is the only current transaction, CommitFreeAndNil sets the InTransaction property to false after committing the transaction.

Any active transactions that were begun after this transaction are effectively committed and freed as well.

The var Transaction instance is set to nil.

Note: This method raises an exception if Transaction is not an active transaction.

See Also