This commit is contained in:
Daniil Gentili 2024-03-28 20:03:07 +01:00
parent d39dc5f040
commit d4ac057261

View File

@ -79,15 +79,19 @@ final class MysqlArray extends SqlArray
if ($max < 100000) {
$connection->query("SET GLOBAL max_connections = 100000");
}
// @codeCoverageIgnoreStart
} catch (\Throwable) {
}
// @codeCoverageIgnoreEnd
$connection->close();
$host = $settings->config->getHost();
$port = $settings->config->getPort();
// @codeCoverageIgnoreStart
if (!\extension_loaded('pdo_mysql')) {
throw new AssertionError("PDO is needed for the mysql backend!");
}
// @codeCoverageIgnoreEnd
$pdo = new PDO(
$host[0] === '/'