diff --git a/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php b/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php index 52eea73ab..2e474f726 100644 --- a/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php +++ b/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php @@ -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."'"; } /**