From 677bda01a00934ccbe356b0571d30b8be63baed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 24 Aug 2023 12:06:54 +0800 Subject: [PATCH] qqq --- Connection.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Connection.php b/Connection.php index d00ce79..f62b03b 100644 --- a/Connection.php +++ b/Connection.php @@ -347,11 +347,7 @@ class Connection extends Component PDO::ATTR_TIMEOUT => $this->connect_timeout, PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES ' . $this->charset ]); - $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); - } return [$link, time()]; }