You are here

public function Connection::isTemporaryTable 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::isTemporaryTable()
  2. 3.1.x src/Driver/Database/sqlsrv/Connection.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Connection::isTemporaryTable()
  3. 4.1.x src/Driver/Database/sqlsrv/Connection.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Connection::isTemporaryTable()

Is this table a temporary table?

The table name.

Return value

bool True is the table is a temporary table.

1 call to Connection::isTemporaryTable()
Connection::tablePrefix in src/Driver/Database/sqlsrv/Connection.php
Adding logic for temporary tables.

File

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

Class

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

Namespace

Drupal\sqlsrv\Driver\Database\sqlsrv

Code

public function isTemporaryTable($table) {
  return stripos($table, 'db_temporary_') !== FALSE;
}