protected function DatabaseSchema_sqlsrv::isTechnicalPrimaryKey in Drupal driver for SQL Server and SQL Azure 7
Same name and namespace in other branches
- 7.3 sqlsrv/schema.inc \DatabaseSchema_sqlsrv::isTechnicalPrimaryKey()
- 7.2 sqlsrv/schema.inc \DatabaseSchema_sqlsrv::isTechnicalPrimaryKey()
Check if a key is a technical primary key.
2 calls to DatabaseSchema_sqlsrv::isTechnicalPrimaryKey()
- DatabaseSchema_sqlsrv::addPrimaryKey in sqlsrv/
schema.inc - Override DatabaseSchema::addPrimaryKey().
- DatabaseSchema_sqlsrv::cleanUpTechnicalPrimaryColumn in sqlsrv/
schema.inc - Try to clean up the technical primary column if possible.
File
- sqlsrv/
schema.inc, line 833 - Database schema code for Microsoft SQL Server database servers.
Class
Code
protected function isTechnicalPrimaryKey($key_name) {
return $key_name && preg_match('/_pkey_technical$/', $key_name);
}