mirror of
https://github.com/danog/AsyncOrm.git
synced 2024-11-29 20:29:48 +01:00
Fixes
This commit is contained in:
parent
d39dc5f040
commit
d4ac057261
@ -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] === '/'
|
||||
|
Loading…
Reference in New Issue
Block a user