Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function DatabaseConnection_sqlite::pushTransaction

Increases the depth of transaction nesting.

If no transaction is already active, we begin a new transaction.

Overrides DatabaseConnection::pushTransaction

File

includes/database/sqlite/database.inc, line 360

Class

DatabaseConnection_sqlite
Specific SQLite implementation of DatabaseConnection.

Code

public function pushTransaction($name) {
 if ($this->savepointSupport ) {
 return parent ::pushTransaction ($name);
 }
 if (!$this->supportsTransactions ()) {
 return;
 }
 if (isset($this->transactionLayers [$name])) {
 throw new DatabaseTransactionNameNonUniqueException ($name . " is already in use.");
 }
 if (!$this->inTransaction ()) {
 $this->connection 
 ->beginTransaction();
 }
 $this->transactionLayers [$name] = $name;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.