first commit
This commit is contained in:
35
vendor/yiisoft/yii2/db/oci/Command.php
vendored
Normal file
35
vendor/yiisoft/yii2/db/oci/Command.php
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
<?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 = [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user