This commit is contained in:
2023-08-16 14:54:02 +08:00
parent 1d2bca40a2
commit 9a680d56a7
+1 -1
View File
@@ -210,7 +210,7 @@ class Connection extends Component
{ {
$pdo = Context::get($this->cds); $pdo = Context::get($this->cds);
if ($pdo === null) { if ($pdo === null) {
$pdo = $this->getConnection(); $pdo = $this->getNormalClientHealth();
if ($this->storey > 0 && !$pdo->inTransaction()) { if ($this->storey > 0 && !$pdo->inTransaction()) {
$pdo->beginTransaction(); $pdo->beginTransaction();
} }