mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/11547] Set MySQL charset to UTF8 in database_test_connection_manager.
PHPBB3-11547
This commit is contained in:
@@ -142,6 +142,14 @@ class phpbb_database_test_connection_manager
|
||||
}
|
||||
|
||||
$this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
|
||||
switch ($this->config['dbms'])
|
||||
{
|
||||
case 'mysql':
|
||||
case 'mysqli':
|
||||
$this->pdo->exec('SET NAMES utf8');
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user