From 543995f5cd82a673b721832a0b1c78dfcdeafb1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 23 Aug 2023 01:48:18 +0800 Subject: [PATCH] qqq --- Connection.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Connection.php b/Connection.php index 6a85160..5db9b9d 100644 --- a/Connection.php +++ b/Connection.php @@ -348,11 +348,11 @@ class Connection extends Component PDO::ATTR_TIMEOUT => $this->connect_timeout, PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES ' . $this->charset ]; - if (!Context::inCoroutine()) { - $options[PDO::ATTR_PERSISTENT] = true; - } else { - $options[PDO::ATTR_PERSISTENT] = false; - } +// if (!Context::inCoroutine()) { +// $options[PDO::ATTR_PERSISTENT] = true; +// } else { +// $options[PDO::ATTR_PERSISTENT] = false; +// } $link = new PDO('mysql:dbname=' . $this->database . ';host=' . $this->cds, $this->username, $this->password, $options); foreach ($this->attributes as $key => $attribute) { $link->setAttribute($key, $attribute);