1
0
Fork 0
mirror of synced 2025-04-02 04:46:16 +03:00
This commit is contained in:
zYne 2007-11-03 15:47:24 +00:00
parent aacfe7288b
commit 1945b0d7a1

View file

@ -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
return $this->exec($query); return $this->exec($query);
} }
} }