You are here

public function Connection::prefixTable in Drupal driver for SQL Server and SQL Azure 8.2

Prefix a single table name.

Parameters

string $table: Name of the table.

Return value

string

1 call to Connection::prefixTable()
Connection::nextId in drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php
{@inhertidoc}

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php, line 399
Definition of Drupal\Driver\Database\sqlsrv\Connection

Class

Connection
Temporary tables: temporary table support is done by means of global temporary tables (#) to avoid the use of DIRECT QUERIES. You can enable and disable the use of direct queries with $this->driver_settings->defaultDirectQuery =…

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function prefixTable($table) {
  if (empty($table)) {
    return $table;
  }
  $table = $this
    ->escapeTable($table);
  return $this
    ->prefixTables("{{$table}}");
}