"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/db/Connection.php" between
yii2-2.0.35.tar.gz and yii2-2.0.36.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

Connection.php  (yii2-2.0.35):Connection.php  (yii2-2.0.36)
skipping to change at line 722 skipping to change at line 722
* It then triggers an [[EVENT_AFTER_OPEN]] event. * It then triggers an [[EVENT_AFTER_OPEN]] event.
*/ */
protected function initConnection() protected function initConnection()
{ {
$this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
if ($this->emulatePrepare !== null && constant('PDO::ATTR_EMULATE_PREPAR ES')) { if ($this->emulatePrepare !== null && constant('PDO::ATTR_EMULATE_PREPAR ES')) {
if ($this->driverName !== 'sqlsrv') { if ($this->driverName !== 'sqlsrv') {
$this->pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, $this->emul atePrepare); $this->pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, $this->emul atePrepare);
} }
} }
if (in_array($this->getDriverName(), ['mssql', 'dblib'], true)) {
$this->pdo->exec('SET ANSI_NULL_DFLT_ON ON');
}
if ($this->charset !== null && in_array($this->getDriverName(), ['pgsql' , 'mysql', 'mysqli', 'cubrid'], true)) { if ($this->charset !== null && in_array($this->getDriverName(), ['pgsql' , 'mysql', 'mysqli', 'cubrid'], true)) {
$this->pdo->exec('SET NAMES ' . $this->pdo->quote($this->charset)); $this->pdo->exec('SET NAMES ' . $this->pdo->quote($this->charset));
} }
$this->trigger(self::EVENT_AFTER_OPEN); $this->trigger(self::EVENT_AFTER_OPEN);
} }
/** /**
* Creates a command for execution. * Creates a command for execution.
* @param string $sql the SQL statement to be executed * @param string $sql the SQL statement to be executed
* @param array $params the parameters to be bound to the SQL statement * @param array $params the parameters to be bound to the SQL statement
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)