Commit bf44bc0a authored by alexpott's avatar alexpott

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

parent 37001445
......@@ -122,7 +122,9 @@ function testConnectionOptions() {
* 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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment