1
0
mirror of synced 2025-03-22 16:03:49 +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. * 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 * @param string $charset
* @return string * @return string
*/ */
public function getSetCharsetSql($charset) public function getSetCharsetSql($charset)
{ {
return 'SET NAMES ' . $this->quote($charset); return "SET NAMES '".$charset."'";
} }
/** /**