This commit is contained in:
2023-08-25 10:00:48 +08:00
parent 250cdda33e
commit 5caed72909
2 changed files with 10 additions and 21 deletions
+2 -2
View File
@@ -201,8 +201,8 @@ class Connection extends Component
{
if ($this->storey == 0) {
/** @var PDO $pdo */
$pdo = Context::get($this->cds);
if ($pdo instanceof PDO && !$this->inTransaction()) {
$pdo = Context::get($this->cds, $this->getTransactionClient());
if (!$this->inTransaction()) {
$pdo->beginTransaction();
}
}