mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 22:30:27 +08:00
36 lines
924 B
PHP
36 lines
924 B
PHP
<?php
|
|
/**
|
|
* @link https://www.yiiframework.com/
|
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
|
* @license https://www.yiiframework.com/license/
|
|
*/
|
|
|
|
namespace yii\db\oci;
|
|
|
|
/**
|
|
* Command represents an Oracle SQL statement to be executed against a database.
|
|
*
|
|
* {@inheritdoc}
|
|
*
|
|
* @since 2.0.33
|
|
*/
|
|
class Command extends \yii\db\Command
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function bindPendingParams()
|
|
{
|
|
$paramsPassedByReference = [];
|
|
foreach ($this->pendingParams as $name => $value) {
|
|
if (\PDO::PARAM_STR === $value[1]) {
|
|
$paramsPassedByReference[$name] = $value[0];
|
|
$this->pdoStatement->bindParam($name, $paramsPassedByReference[$name], $value[1], strlen($value[0]));
|
|
} else {
|
|
$this->pdoStatement->bindValue($name, $value[0], $value[1]);
|
|
}
|
|
}
|
|
$this->pendingParams = [];
|
|
}
|
|
}
|