You are here

public function Connection::commit in Drupal driver for SQL Server and SQL Azure 8.2

File

drivers/lib/Drupal/Driver/Database/sqlsrv/PDO/Connection.php, line 199

Class

Connection

Namespace

Drupal\Driver\Database\sqlsrv\PDO

Code

public function commit() {
  if ($this->doomed_transaction) {

    // We are about to throw an Exception, this is the last word of warning...
    // so it is safe to release the lock from the connection now...
    $this->doomed_transaction = false;
    $this
      ->ThrowDoomedTransactionException();
  }
  $this->in_transaction = false;
  return parent::commit();
}