This commit is contained in:
2023-08-24 12:06:54 +08:00
parent 2c63caaaf8
commit 677bda01a0
-4
View File
@@ -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()];
}