You are here

public function Connection::getFullQualifiedTableName in Drupal driver for SQL Server and SQL Azure 4.0.x

Same name and namespace in other branches
  1. 4.2.x src/Driver/Database/sqlsrv/Connection.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Connection::getFullQualifiedTableName()
  2. 3.1.x src/Driver/Database/sqlsrv/Connection.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Connection::getFullQualifiedTableName()
  3. 4.1.x src/Driver/Database/sqlsrv/Connection.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Connection::getFullQualifiedTableName()

Including schema name.

Overrides Connection::getFullQualifiedTableName

File

src/Driver/Database/sqlsrv/Connection.php, line 299

Class

Connection
Sqlsvr implementation of \Drupal\Core\Database\Connection.

Namespace

Drupal\sqlsrv\Driver\Database\sqlsrv

Code

public function getFullQualifiedTableName($table) {
  $options = $this
    ->getConnectionOptions();
  $prefix = $this
    ->tablePrefix($table);
  $schema_name = $this->schema
    ->getDefaultSchema();
  return $options['database'] . '.' . $schema_name . '.' . $prefix . $table;
}