[2.0] DDC-105 - Fix for use of quote() in getSetCharsetSql().
This commit is contained in:
parent
a307b86ecb
commit
d8bf040165
@ -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."'";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user