You are here

private function DatabaseSchema_sqlsrv::isVariableLengthType in Drupal driver for SQL Server and SQL Azure 7.2

Same name and namespace in other branches
  1. 7.3 sqlsrv/schema.inc \DatabaseSchema_sqlsrv::isVariableLengthType()

Check if a column is of variable length.

1 call to DatabaseSchema_sqlsrv::isVariableLengthType()
DatabaseSchema_sqlsrv::calculateClusteredIndexRowSizeBytes in sqlsrv/schema.inc
Estimates the row size of a clustered index.

File

sqlsrv/schema.inc, line 495
Database schema code for Microsoft SQL Server database servers.

Class

DatabaseSchema_sqlsrv

Code

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