function DatabaseConnection_sqlite::pushTransaction

Overrides DatabaseConnection::pushTransaction

File

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

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.