From f8a1e700a798362ceeff6cdb6cc43ba814922d27 Mon Sep 17 00:00:00 2001 From: whwyy Date: Thu, 23 Nov 2023 15:26:20 +0800 Subject: [PATCH] eee --- Connection.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Connection.php b/Connection.php index 4d64a15..30a35e4 100644 --- a/Connection.php +++ b/Connection.php @@ -237,11 +237,7 @@ class Connection extends Component { $pdo = Context::get($this->cds); if ($pdo === null) { - $pdo = $this->getNormalClientHealth(); - if (!$pdo->inTransaction()) { - $pdo->beginTransaction(); - } - Context::set($this->cds, $pdo); + return Context::set($this->cds, $this->getNormalClientHealth()); } return $pdo; }