Commit d8bf0401 authored by beberlei's avatar beberlei

[2.0] DDC-105 - Fix for use of quote() in getSetCharsetSql().

parent a307b86e
......@@ -1173,12 +1173,15 @@ abstract class AbstractPlatform
/**
* Gets the SQL statement specific for the platform to set the charset.
*
* This function is MySQL specific and required by
* {@see \Doctrine\DBAL\Connection::setCharset($charset)}
*
* @param string $charset
* @return string
*/
public function getSetCharsetSql($charset)
{
return 'SET NAMES ' . $this->quote($charset);
return "SET NAMES '".$charset."'";
}
/**
......
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