You are here

protected static property Connection::$sqlsrvConditionOperatorMap in Drupal driver for SQL Server and SQL Azure 8

Same name and namespace in other branches
  1. 3.0.x drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php \Drupal\Driver\Database\sqlsrv\Connection::sqlsrvConditionOperatorMap

A map of condition operators to sqlsrv operators.

SQL Server doesn't need special escaping for the \ character in a string literal, because it uses '' to escape the single quote, not \'.

Type: array

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Connection.php, line 739
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

protected static $sqlsrvConditionOperatorMap = [
  // These can be changed to 'LIKE' => ['postfix' => " ESCAPE '\\'"],
  // if https://bugs.php.net/bug.php?id=79276 is fixed.
  'LIKE' => [],
  'NOT LIKE' => [],
  'LIKE BINARY' => [
    'operator' => 'LIKE',
  ],
];