From d8bf040165ddabb20e58a52e9e87103fdcd90e6a Mon Sep 17 00:00:00 2001 From: beberlei Date: Mon, 2 Nov 2009 23:13:46 +0000 Subject: [PATCH] [2.0] DDC-105 - Fix for use of quote() in getSetCharsetSql(). --- lib/Doctrine/DBAL/Platforms/AbstractPlatform.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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."'"; } /**