This commit is contained in:
2021-01-04 18:41:26 +08:00
parent 0c7a777ab4
commit 22b34ac0fc
+1 -1
View File
@@ -210,7 +210,7 @@ class Connection extends Pool
$this->newClient($config, $coroutineName);
}
[$time, $connections] = $this->get($coroutineName);
if ($connections instanceof PDO) {
if (!($connections instanceof PDO)) {
throw new Exception('Database exception.');
}
return Context::setContext($coroutineName, $connections);