mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
Merge remote-tracking branch 'bantu/ticket/11547' into develop-olympus
* bantu/ticket/11547: [ticket/11547] Set MySQL charset to UTF8 in database_test_connection_manager.
This commit is contained in:
@@ -142,6 +142,14 @@ class phpbb_database_test_connection_manager
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
$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