1
0
mirror of synced 2025-03-21 23:43:53 +03:00

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

This commit is contained in:
beberlei 2009-11-02 23:13:46 +00:00
parent a307b86ecb
commit d8bf040165

View File

@ -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."'";
}
/**