public function DatabaseStatement_sqlsrv::bindValue 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::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
Code
public function bindValue($param, $value, $datatype = PDO::PARAM_STR) {
$this->boundParams[$param] = array(
"value" => $value,
"datatype" => $datatype,
);
return parent::bindValue($param, $value, $datatype);
}