mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			925 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			925 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 = [];
 | 
						|
    }
 | 
						|
}
 |