diff --git a/lib/Doctrine/Connection/Mysql.php b/lib/Doctrine/Connection/Mysql.php index dfa58980c..7e4972f6d 100644 --- a/lib/Doctrine/Connection/Mysql.php +++ b/lib/Doctrine/Connection/Mysql.php @@ -94,12 +94,11 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common * Set the charset on the current connection * * @param string charset - * - * @return void */ public function setCharset($charset) { - $query = 'SET NAMES '.$this->dbh->quote($charset); + $query = 'SET NAMES ' . $this->quote($charset); + $this->exec($query); } @@ -207,4 +206,4 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common return $this->exec($query); } -} \ No newline at end of file +}