Commit efabb3cf authored by Benjamin Eberlei's avatar Benjamin Eberlei

DBAL-111 - Add charset option to PDO MySQL driver which is supported since PHP 5.3.6

parent 4e040e0f
......@@ -68,6 +68,9 @@ class Driver implements \Doctrine\DBAL\Driver
if (isset($params['unix_socket'])) {
$dsn .= 'unix_socket=' . $params['unix_socket'] . ';';
}
if (isset($params['charset'])) {
$dsn .= 'charset=' . $params['charset'] . ';';
}
return $dsn;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment