From 22b34ac0fc708a859ff5b1bb4238309c9c5e4530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 4 Jan 2021 18:41:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Pool/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index 88b791b3..89ae4a76 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -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);