diff --git a/src/ThinkOrm.php b/src/ThinkOrm.php index 5bacfe7..a5e2f13 100644 --- a/src/ThinkOrm.php +++ b/src/ThinkOrm.php @@ -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) {}