You are here

public function DatabaseStatement_sqlsrv::bindValue in Drupal driver for SQL Server and SQL Azure 7.2

Same name and namespace in other branches
  1. 7.3 sqlsrv/database.inc \DatabaseStatement_sqlsrv::bindValue()

Overrides the default \PDOStatement method to add the named parameter and it's value to the array of bound values

  • then accesses and returns parent::bindValue method

Parameters

string $param:

string $value:

int $datatype:

Return value

bool - default of \PDOStatement::bindValue()

File

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

Class

DatabaseStatement_sqlsrv

Code

public function bindValue($param, $value, $datatype = PDO::PARAM_STR) {
  $this->boundParams[$param] = array(
    "value" => $value,
    "datatype" => $datatype,
  );
  return parent::bindValue($param, $value, $datatype);
}