You are here

public function DatabaseConnection_sqlsrv::PDOPrepare 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::PDOPrepare()
  2. 7.2 sqlsrv/database.inc \DatabaseConnection_sqlsrv::PDOPrepare()

Internal function: prepare a query by calling PDO directly.

This function has to be public because it is called by other parts of the database layer, but do not call it directly, as you risk locking down the PHP process.

File

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

Class

DatabaseConnection_sqlsrv

Code

public function PDOPrepare($query, array $options = array()) {
  if (!$this->bypassQueryPreprocess) {
    $query = $this
      ->preprocessQuery($query);
  }
  return parent::prepare($query, $options);
}