You are here

public function DatabaseContext::__destruct in Drupal driver for SQL Server and SQL Azure 7.3

Same name and namespace in other branches
  1. 7.2 sqlsrv/context.inc \DatabaseContext::__destruct()

File

sqlsrv/context.inc, line 90

Class

DatabaseContext
Defines a behaviour scope for the database driver that lasts until the object is destroyed.

Code

public function __destruct() {

  // Restore previous driver configuration.
  $this->connection->bypassQueryPreprocess = $this->state_bypass;
  $this->connection->directQuery = $this->state_direct;
  $this->connection->statementCaching = $this->statement_caching;
}