From 8be23dd4c72c2e17d801903495629bbad154bdca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 6 Dec 2021 16:12:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Connection.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Connection.php b/src/Connection.php index 998c780..287b636 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -197,6 +197,13 @@ class Connection extends Component */ public function masterInstance(): PDO { + var_dump([ + 'cds' => $this->cds, + 'username' => $this->username, + 'password' => $this->password, + 'attributes' => $this->attributes, + 'dbname' => $this->database + ]); return $this->connections()->get([ 'cds' => $this->cds, 'username' => $this->username, @@ -212,7 +219,6 @@ class Connection extends Component */ public function slaveInstance(): PDO { - var_dump($this->slaveConfig); if (empty($this->slaveConfig) || Db::transactionsActive()) { return $this->masterInstance(); }