You are here

public static function DatabaseTransactionSettings::GetDDLCompatibleDefaults in Drupal driver for SQL Server and SQL Azure 7.2

Same name and namespace in other branches
  1. 7.3 sqlsrv/transaction.inc \DatabaseTransactionSettings::GetDDLCompatibleDefaults()

Snapshot isolation is not compatible with DDL operations.

Return value

DatabaseTransactionSettings

4 calls to DatabaseTransactionSettings::GetDDLCompatibleDefaults()
DatabaseSchema_sqlsrv::addField in sqlsrv/schema.inc
Override DatabaseSchema::addField().
DatabaseSchema_sqlsrv::changeField in sqlsrv/schema.inc
Override DatabaseSchema::changeField().
DatabaseSchema_sqlsrv::compressPrimaryKeyIndex in sqlsrv/schema.inc
Sometimes the size of a table's primary key index needs to be reduced to allow for Primary XML Indexes.
DatabaseSchema_sqlsrv::createTable in sqlsrv/schema.inc
{@Inheritdoc}

File

sqlsrv/transaction.inc, line 236

Class

DatabaseTransactionSettings
Behaviour settings for a transaction.

Code

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