You are here

public function Transaction::rollback in Drupal driver for SQL Server and SQL Azure 8

Same name and namespace in other branches
  1. 8.2 drivers/lib/Drupal/Driver/Database/sqlsrv/Transaction.php \Drupal\Driver\Database\sqlsrv\Transaction::rollback()
1 call to Transaction::rollback()
Transaction::__destruct in drivers/lib/Drupal/Driver/Database/sqlsrv/Transaction.php
Overriden __destruct to provide some mental health (sane support).

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Transaction.php, line 130
Definition of Drupal\Driver\Database\sqlsrv\Transaction

Class

Transaction

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function rollback() {
  $this->rolledBack = TRUE;

  // Do not pop the transaction if this features is not enable.
  if ($this->connection->driver_settings
    ->GetEnableTransactions() === FALSE) {
    return;
  }
  $this->connection
    ->rollback($this->name);
}