You are here

public static function TransactionSettings::GetDDLCompatibleDefaults 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/TransactionSettings.php \Drupal\Driver\Database\sqlsrv\TransactionSettings::GetDDLCompatibleDefaults()

Snapshot isolation is not compatible with DDL operations.

Return value

TransactionSettings

4 calls to TransactionSettings::GetDDLCompatibleDefaults()
Schema::addField in drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php
Override DatabaseSchema::addField().
Schema::changeField in drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php
Override DatabaseSchema::changeField().
Schema::compressPrimaryKeyIndex in drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php
Sometimes the size of a table's primary key index needs to be reduced to allow for Primary XML Indexes.
Schema::createTable in drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php
{@Inheritdoc}

File

drivers/lib/Drupal/Driver/Database/sqlsrv/TransactionSettings.php, line 101

Class

TransactionSettings
Behaviour settings for a transaction.

Namespace

Drupal\Driver\Database\sqlsrv

Code

public static function GetDDLCompatibleDefaults() {
  return new TransactionSettings(TRUE, DatabaseTransactionScopeOption::Required(), DatabaseTransactionIsolationLevel::ReadCommitted());
}