Issue #2508777 by dawehner: Database Connection test fails on PHP-5.5

8.0.x
Alex Pott 2015-06-19 10:57:32 -05:00
parent 3700144557
commit bf44bc0a8f
1 changed files with 3 additions and 1 deletions

View File

@ -122,7 +122,9 @@ class ConnectionTest extends DatabaseTestBase {
* Ensure that you cannot execute multiple statements on phpversion() > 5.5.21 or > 5.6.5.
*/
public function testMultipleStatementsForNewPhp() {
if (!defined('\PDO::MYSQL_ATTR_MULTI_STATEMENTS')) {
// This just tests mysql, as other PDO integrations don't allow to disable
// multiple statements.
if (Database::getConnection()->databaseType() !== 'mysql' || !defined('\PDO::MYSQL_ATTR_MULTI_STATEMENTS')) {
return;
}