This commit is contained in:
2023-08-21 09:38:37 +08:00
parent 0d3a37084e
commit 37c9bcc4d2
+2 -1
View File
@@ -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;