This commit is contained in:
2023-08-24 12:29:18 +08:00
parent 327f40faea
commit 36e768e3e6
+2 -2
View File
@@ -182,10 +182,10 @@ class Connection extends Component
return false;
}
try {
if (($steam = $client->query('select 1')) === false) {
if ($client->query('select 1') === false) {
return false;
}
return $steam->fetch(PDO::FETCH_ASSOC);
return true;
} catch (\Throwable $exception) {
return false;
}