public static function Utils::BindArguments in Drupal driver for SQL Server and SQL Azure 8
Same name and namespace in other branches
- 3.0.x drivers/lib/Drupal/Driver/Database/sqlsrv/Utils.php \Drupal\Driver\Database\sqlsrv\Utils::bindArguments()
Summary of BindArguments
Parameters
PDOStatement $stmt:
array $values:
2 calls to Utils::BindArguments()
- Insert::execute in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Insert.php - Executes the insert query.
- Update::execute in drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Update.php - Executes the UPDATE query.
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Utils.php, line 22
Class
Namespace
Drupal\Driver\Database\sqlsrvCode
public static function BindArguments(\PDOStatement $stmt, array &$values) {
foreach ($values as $key => &$value) {
$stmt
->bindParam($key, $value, PDO::PARAM_STR);
}
}