You are here

private function Scheme::IsVariableLengthType in Drupal driver for SQL Server and SQL Azure 8.2

Check if a column is of variable length.

2 calls to Scheme::IsVariableLengthType()
Scheme::calculateClusteredIndexRowSizeBytes in drivers/lib/Drupal/Driver/Database/sqlsrv/Scheme.php
Estimates the row size of a clustered index.
Scheme::TableDetailsGet in drivers/lib/Drupal/Driver/Database/sqlsrv/Scheme.php
Database introspection: fetch technical information about a table.

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Scheme.php, line 654

Class

Scheme

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