You are here

protected function Select::replaceReservedAliases in Drupal driver for SQL Server and SQL Azure 8

Same name and namespace in other branches
  1. 8.2 drivers/lib/Drupal/Driver/Database/sqlsrv/Select.php \Drupal\Driver\Database\sqlsrv\Select::replaceReservedAliases()

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Select.php, line 239
Definition of Drupal\Driver\Database\sqlsrv\Select

Class

Select

Namespace

Drupal\Driver\Database\sqlsrv

Code

protected function replaceReservedAliases($matches) {
  if ($matches[1] !== '') {

    // Replace reserved words.
    return $this->cross_apply_aliases[$matches[1]];
  }

  // Let other value passthru.
  // by the logic of the regex above, this will always be the last match.
  return end($matches);
}