From 466df3387fb97a2c6db70dac462dde7708f0f0d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 17 Jan 2022 10:59:55 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- kiri-engine/Pool/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiri-engine/Pool/Connection.php b/kiri-engine/Pool/Connection.php index 40e0d790..f7edaa67 100644 --- a/kiri-engine/Pool/Connection.php +++ b/kiri-engine/Pool/Connection.php @@ -97,7 +97,7 @@ class Connection extends Component $minx = Config::get('databases.pool.min', 1); /** @var PDO $connections */ - $connections = $this->getPool()->get($coroutineName, null, $minx); + $connections = $this->getPool()->get($coroutineName, $this->create($coroutineName, $config), $minx); if (Context::hasContext('begin_' . $coroutineName)) { $connections->beginTransaction(); }