You are here

public function DatabaseConnection_sqlsrv::escapeTable in Drupal driver for SQL Server and SQL Azure 7

Same name and namespace in other branches
  1. 7.3 sqlsrv/database.inc \DatabaseConnection_sqlsrv::escapeTable()
  2. 7.2 sqlsrv/database.inc \DatabaseConnection_sqlsrv::escapeTable()

Override DatabaseConnection::escapeTable().

@status needswork

Overrides DatabaseConnection::escapeTable

File

sqlsrv/database.inc, line 456
Database interface code for Microsoft SQL Server.

Class

DatabaseConnection_sqlsrv

Code

public function escapeTable($table) {

  // Rescue the # prefix from the escaping.
  return ($table[0] == '#' ? '#' : '') . preg_replace('/[^A-Za-z0-9_.]+/', '', $table);
}