You are here

private function Schema::isVariableLengthType in Drupal driver for SQL Server and SQL Azure 8

Same name and namespace in other branches
  1. 3.0.x drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php \Drupal\Driver\Database\sqlsrv\Schema::isVariableLengthType()

Check if a column is of variable length.

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

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php, line 479
Definition of Drupal\Driver\Database\sqlsrv\Schema

Class

Schema

Namespace

Drupal\Driver\Database\sqlsrv

Code

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