public function DatabaseStatement_sqlsrv::bindParam in Drupal driver for SQL Server and SQL Azure 7.2
Same name and namespace in other branches
- 7.3 sqlsrv/database.inc \DatabaseStatement_sqlsrv::bindParam()
Overrides the default \PDOStatement method to add the named parameter and it's reference to the array of bound parameters - then accesses and returns parent::bindParam method
Parameters
string $param:
mixed $value:
int $datatype:
int $length:
mixed $driverOptions:
Return value
bool - default of \PDOStatement::bindParam()
File
- sqlsrv/
database.inc, line 1079 - Database interface code for Microsoft SQL Server.
Class
Code
public function bindParam($param, &$value, $datatype = PDO::PARAM_STR, $length = 0, $driverOptions = FALSE) {
$this->boundParams[$param] = array(
"value" => &$value,
"datatype" => $datatype,
);
if (empty($driverOptions)) {
return parent::bindParam($param, $value, $datatype, $length);
}
else {
return parent::bindParam($param, $value, $datatype, $length, $driverOptions);
}
}