public static function Utils::GetMSSQLType in Drupal driver for SQL Server and SQL Azure 8.2
Same name and namespace in other branches
- 8 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
4 calls to Utils::GetMSSQLType()
- Schema::processField in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Schema.php - Set database-engine specific properties for a field.
- Scheme::DefaultValueExpression in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Scheme.php - Get the SQL expression for a default value that can be embedded directly into a query.
- Utils::convertTypes in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Utils.php - Gets the statement needed to convert one type to another
- Utils::IsTextType in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Utils.php - If this data type contains text.
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Utils.php, line 27
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;
}