mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Send "SET NAMES utf8" to MySQL for PHP below 5.3.6
This commit is contained in:
parent
28180485d9
commit
cdd182ce35
1 changed files with 3 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue