Skip to content
Snippets Groups Projects
Commit b47e4378 authored by Owen Winkler's avatar Owen Winkler
Browse files

Merge pull request #6302 from owncloud/mysql-set-names-utf8

Send "SET NAMES utf8" to MySQL for PHP below 5.3.6
parents 5ba9344b cdd182ce
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,9 @@ class OC_DB {
);
$connectionParams['adapter'] = '\OC\DB\Adapter';
$connectionParams['wrapperClass'] = 'OC\DB\Connection';
// Send "SET NAMES utf8". Only required on PHP 5.3 below 5.3.6.
// See http://stackoverflow.com/questions/4361459/php-pdo-charset-set-names#4361485
$eventManager->addEventSubscriber(new \Doctrine\DBAL\Event\Listeners\MysqlSessionInit);
break;
case 'pgsql':
$connectionParams = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment