Skip to content

Commit

Permalink
增加sqlserver和oracle心跳
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Apr 23, 2023
1 parent e044e4c commit 9f1e525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ThinkOrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function start($worker)
}
foreach ($instances as $connection) {
/* @var \think\db\connector\Mysql $connection */
if ($connection->getConfig('type') == 'mysql') {
if (in_array($connection->getConfig('type'), ['mysql', 'oracle', 'sqlsrv'])) {
try {
$connection->query('select 1');
} catch (Throwable $e) {}
Expand Down

0 comments on commit 9f1e525

Please sign in to comment.