public static function Utils::GetMSSQLType in Drupal driver for SQL Server and SQL Azure 8
Same name and namespace in other branches
- 8.2 drivers/lib/Drupal/Driver/Database/sqlsrv/Utils.php \Drupal\Driver\Database\sqlsrv\Utils::GetMSSQLType()
 - 3.0.x drivers/lib/Drupal/Driver/Database/sqlsrv/Utils.php \Drupal\Driver\Database\sqlsrv\Utils::getMssqlType()
 
Returns the spec for a MSSQL data type definition.
Parameters
string $type:
Return value
string
2 calls to Utils::GetMSSQLType()
- Schema::defaultValueExpression in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Schema.php  - Get the SQL expression for a default value.
 - Schema::processField in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Schema.php  - Set database-engine specific properties for a field.
 
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Utils.php, line 109  
Class
Namespace
Drupal\Driver\Database\sqlsrvCode
public static function GetMSSQLType($type) {
  $matches = array();
  if (preg_match('/^[a-zA-Z]*/', $type, $matches)) {
    return reset($matches);
  }
  return $type;
}