public function Statement::bindParam in Drupal driver for SQL Server and SQL Azure 8.2
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
3 calls to Statement::bindParam()
- Statement::BindArguments in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ PDO/ Statement.php - Summary of BindArguments
- Statement::BindExpressions in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ PDO/ Statement.php - Summary of BindExpressions
- Statement::BindValues in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ PDO/ Statement.php - Binds a set of values to a PDO Statement, taking care of properly managing binary data.
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ PDO/ Statement.php, line 124
Class
- Statement
- Turbocharged Statement class to work with MSSQL server.
Namespace
Drupal\Driver\Database\sqlsrv\PDOCode
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);
}
}