From 64087d6258adbc4b104dd566b2751126a1fe179b Mon Sep 17 00:00:00 2001 From: whwyy Date: Tue, 12 Dec 2023 17:47:40 +0800 Subject: [PATCH] eee --- Connection.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Connection.php b/Connection.php index 6e65206..bb5bf84 100644 --- a/Connection.php +++ b/Connection.php @@ -235,6 +235,9 @@ class Connection extends Component { $this->storey--; if ($this->storey == 0) { + if (!Context::exists($this->cds)) { + return; + } $pdo = $this->getTransactionClient(); if ($pdo->inTransaction()) { $pdo->rollback(); @@ -251,6 +254,9 @@ class Connection extends Component { $this->storey--; if ($this->storey == 0) { + if (!Context::exists($this->cds)) { + return; + } $pdo = $this->getTransactionClient(); if ($pdo->inTransaction()) { $pdo->commit();