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