From e5969429744d01e319d8042eea3e3d987bb5da45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sat, 5 Sep 2020 02:21:34 +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 --- Database/Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/Command.php b/Database/Command.php index 5ff3b875..22753d8c 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -62,7 +62,7 @@ class Command extends Component if (empty($this->sql)) { return; } - if (($connect = $this->getConnection()) === false) { + if (!(($connect = $this->getConnection()) instanceof PDO)) { throw new Exception('数据库繁忙, 请稍后再试!'); } $this->prepare = $connect->prepare($this->sql);