Skip to content
Browse files

Merge pull request #1294 from toopay/pdo-patch

Hotfix PDO
  • Loading branch information...
2 parents 0713b94 + 5dba032 commit c7bd2a87f0a23a574f2687b3c2989f7683fd2786 @philsturgeon philsturgeon committed Apr 26, 2012
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."'" : '');

0 comments on commit c7bd2a8

Please sign in to comment.
Something went wrong with that request. Please try again.