You are here

public static function TransactionSettings::GetDDLCompatibleDefaults in Drupal driver for SQL Server and SQL Azure 8.2

Same name and namespace in other branches
  1. 8 drivers/lib/Drupal/Driver/Database/sqlsrv/TransactionSettings.php \Drupal\Driver\Database\sqlsrv\TransactionSettings::GetDDLCompatibleDefaults()

Snapshot isolation is not compatible with DDL operations, use read commited with implicit commits.

Return value

TransactionSettings

5 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}
Schema::fieldSetDefault in drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php
Override DatabaseSchema::fieldSetDefault().

File

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

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());
}