From 6febf0c20f0dd4aab4ada4d084a0fba15c98d9e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 25 Feb 2022 18:11:09 +0800 Subject: [PATCH] modify plugin name --- Connection.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Connection.php b/Connection.php index 5dbb40c..cec4976 100644 --- a/Connection.php +++ b/Connection.php @@ -183,7 +183,16 @@ class Connection extends Component */ public function beginTransaction(): static { - $this->connections()->beginTransaction($this->cds); + $this->connections()->beginTransaction([ + 'cds' => $this->cds, + 'username' => $this->username, + 'password' => $this->password, + 'attributes' => $this->attributes, + 'connect_timeout' => $this->connect_timeout, + 'read_timeout' => $this->read_timeout, + 'dbname' => $this->database, + 'pool' => $this->pool + ]); return $this; }