Top Previous Next

Indicates whether a database transaction is in progress or not.


property InTransaction: Boolean;


Examine InTransaction at run-time to determine if a database transaction is currently in progress.

InTransaction is True if a transaction is in progress, False otherwise.

The value of InTransaction cannot be changed directly. Calling StartTransaction sets InTransaction in True. Calling Commit or Rollback sets InTransaction in False.

On contrary to BDE and ODBC you must explicitly specify a TPSQLDatabase component for each PostgreSQL table.