Commit 03fd0767 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 79e04e98
...@@ -68,6 +68,9 @@ class Driver implements \Doctrine\DBAL\Driver ...@@ -68,6 +68,9 @@ class Driver implements \Doctrine\DBAL\Driver
if (isset($params['unix_socket'])) { if (isset($params['unix_socket'])) {
$dsn .= 'unix_socket=' . $params['unix_socket'] . ';'; $dsn .= 'unix_socket=' . $params['unix_socket'] . ';';
} }
if (isset($params['charset'])) {
$dsn .= 'charset=' . $params['charset'] . ';';
}
return $dsn; 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