mirror of
https://github.com/danog/AsyncOrm.git
synced 2024-12-02 09:38:31 +01:00
Fixes
This commit is contained in:
parent
d39dc5f040
commit
d4ac057261
@ -79,15 +79,19 @@ final class MysqlArray extends SqlArray
|
|||||||
if ($max < 100000) {
|
if ($max < 100000) {
|
||||||
$connection->query("SET GLOBAL max_connections = 100000");
|
$connection->query("SET GLOBAL max_connections = 100000");
|
||||||
}
|
}
|
||||||
|
// @codeCoverageIgnoreStart
|
||||||
} catch (\Throwable) {
|
} catch (\Throwable) {
|
||||||
}
|
}
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
$connection->close();
|
$connection->close();
|
||||||
|
|
||||||
$host = $settings->config->getHost();
|
$host = $settings->config->getHost();
|
||||||
$port = $settings->config->getPort();
|
$port = $settings->config->getPort();
|
||||||
|
// @codeCoverageIgnoreStart
|
||||||
if (!\extension_loaded('pdo_mysql')) {
|
if (!\extension_loaded('pdo_mysql')) {
|
||||||
throw new AssertionError("PDO is needed for the mysql backend!");
|
throw new AssertionError("PDO is needed for the mysql backend!");
|
||||||
}
|
}
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
|
|
||||||
$pdo = new PDO(
|
$pdo = new PDO(
|
||||||
$host[0] === '/'
|
$host[0] === '/'
|
||||||
|
Loading…
Reference in New Issue
Block a user