private function Schema::isVariableLengthType in Drupal driver for SQL Server and SQL Azure 3.0.x
Same name and namespace in other branches
- 8 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 1176
Class
Namespace
Drupal\Driver\Database\sqlsrvCode
private function isVariableLengthType($type) {
$types = [
'nvarchar' => TRUE,
'ntext' => TRUE,
'varchar' => TRUE,
'varbinary' => TRUE,
'image' => TRUE,
];
return isset($types[$type]);
}