EPUB | CHM | PDF

TMySQLDatabase.Properties.InTransaction

Top Previous Next

Indicates whether a database transaction is in progress or not.

Syntax:

property InTransaction: Boolean;

Description:

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 to True. Calling Commit or Rollback sets InTransaction to False.

note On contrary to BDE and ODBC you must explicitly specify a TMySQLDataBase component for each MySQL table. Are transactions supported or not in MySQL depends on table type. MyISAM tables (the default type in MySQL) don't support transactions; InnoDB and BDB tables do.

See also: StartTransaction, Commit, Rollback methods