You are here

private function Schema::isVariableLengthType in Drupal driver for SQL Server and SQL Azure 4.1.x

Same name and namespace in other branches
  1. 4.2.x src/Driver/Database/sqlsrv/Schema.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Schema::isVariableLengthType()
  2. 3.1.x src/Driver/Database/sqlsrv/Schema.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Schema::isVariableLengthType()
  3. 4.0.x src/Driver/Database/sqlsrv/Schema.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Schema::isVariableLengthType()

Check if a column is of variable length.

1 call to Schema::isVariableLengthType()
Schema::calculateClusteredIndexRowSizeBytes in src/Driver/Database/sqlsrv/Schema.php
Estimates the row size of a clustered index.

File

src/Driver/Database/sqlsrv/Schema.php, line 1136

Class

Schema

Namespace

Drupal\sqlsrv\Driver\Database\sqlsrv

Code

private function isVariableLengthType($type) {
  $types = [
    'nvarchar' => TRUE,
    'ntext' => TRUE,
    'varchar' => TRUE,
    'varbinary' => TRUE,
    'image' => TRUE,
  ];
  return isset($types[$type]);
}