You are here

protected function DatabaseSchema_sqlsrv::isTechnicalPrimaryKey in Drupal driver for SQL Server and SQL Azure 7.3

Same name and namespace in other branches
  1. 7 sqlsrv/schema.inc \DatabaseSchema_sqlsrv::isTechnicalPrimaryKey()
  2. 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
Tries to clean up the technical primary column. It will be deleted if (a) It is not being used as the current primary key and... (b) There is no unique constraint because they depend on this column (see addUniqueKey())

File

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

Class

DatabaseSchema_sqlsrv

Code

protected function isTechnicalPrimaryKey($key_name) {
  return $key_name && preg_match('/_pkey_technical$/', $key_name);
}