Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1294 from toopay/pdo-patch

Hotfix PDO
  • Loading branch information...
commit c7bd2a87f0a23a574f2687b3c2989f7683fd2786 2 parents 0713b94 + 5dba032
@philsturgeon philsturgeon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  system/database/drivers/pdo/pdo_driver.php
View
2  system/database/drivers/pdo/pdo_driver.php
@@ -225,7 +225,7 @@ protected function _pdo_connect($persistent = FALSE)
*
* Reference: http://www.php.net/manual/en/ref.pdo-mysql.connection.php
*/
- if ($this->subdriver === 'mysql' && ! is_php('5.3.6') && ! empty($this->char_set))
+ if ($this->pdodriver === 'mysql' && ! is_php('5.3.6') && ! empty($this->char_set))
{
$this->options[PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES '.$this->char_set
.( ! empty($this->db_collat) ? " COLLATE '".$this->dbcollat."'" : '');
Please sign in to comment.
Something went wrong with that request. Please try again.