From 37c9bcc4d267125151257fab25d128904145d045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 21 Aug 2023 09:38:37 +0800 Subject: [PATCH] qqq --- Connection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Connection.php b/Connection.php index 9b0a2ee..6a85160 100644 --- a/Connection.php +++ b/Connection.php @@ -25,6 +25,7 @@ use Kiri\Events\EventProvider; use Kiri\Exception\NotFindClassException; use PDO; use Kiri\Error\StdoutLogger; +use PDOStatement; use Psr\Log\LoggerInterface; use ReflectionException; use Kiri\Server\Events\OnAfterRequest; @@ -199,7 +200,7 @@ class Connection extends Component } try { $steam = $client->query('select 1'); - if ($steam !== false) { + if ($steam instanceof PDOStatement) { return true; } return false;