fixes #562
This commit is contained in:
parent
aacfe7288b
commit
1945b0d7a1
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue