1.20.x database.inc public DatabaseConnection::inTransaction()

Determines if there is an active transaction open.

Return value

TRUE if we're currently in a transaction, FALSE otherwise.:

File

includes/database/database.inc, line 1090
Core systems for the database layer.

Class

DatabaseConnection
Base Database API class.

Code

public function inTransaction() {
  return ($this->transactionDepth() > 0);
}