diff --git a/core/modules/system/src/Tests/Database/ConnectionTest.php b/core/modules/system/src/Tests/Database/ConnectionTest.php index d6fe5f9ca25..81b769fb324 100644 --- a/core/modules/system/src/Tests/Database/ConnectionTest.php +++ b/core/modules/system/src/Tests/Database/ConnectionTest.php @@ -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; }