Commit 1945b0d7 authored by zYne's avatar zYne

fixes #562

parent aacfe728
...@@ -94,12 +94,11 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common ...@@ -94,12 +94,11 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common
* Set the charset on the current connection * Set the charset on the current connection
* *
* @param string charset * @param string charset
*
* @return void
*/ */
public function setCharset($charset) public function setCharset($charset)
{ {
$query = 'SET NAMES '.$this->dbh->quote($charset); $query = 'SET NAMES ' . $this->quote($charset);
$this->exec($query); $this->exec($query);
} }
...@@ -207,4 +206,4 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common ...@@ -207,4 +206,4 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common
return $this->exec($query); return $this->exec($query);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment