public function DatabaseSchema_sqlsrv::DrupalSpecificFunctions in Drupal driver for SQL Server and SQL Azure 7
Same name and namespace in other branches
- 7.3 sqlsrv/schema.inc \DatabaseSchema_sqlsrv::DrupalSpecificFunctions()
- 7.2 sqlsrv/schema.inc \DatabaseSchema_sqlsrv::DrupalSpecificFunctions()
Returns a list of functions that are not available by default on SQL Server, but used in Drupal Core or contributed modules because they are available in other databases such as MySQL.
File
- sqlsrv/
schema.inc, line 29 - Database schema code for Microsoft SQL Server database servers.
Class
Code
public function DrupalSpecificFunctions() {
$functions = array(
'SUBSTRING',
'SUBSTRING_INDEX',
'GREATEST',
'MD5',
'LPAD',
'GROUP_CONCAT',
'CONCAT',
'IF',
);
// Since SQL Server 2012 (11), there
// is a native CONCAT implementation
if ($this
->EngineVersionNumber() >= 11) {
unset($functions['CONCAT']);
}
return $functions;
}