This commit is contained in:
2023-08-16 14:39:46 +08:00
parent e597224e86
commit 4c49a09047
+1 -2
View File
@@ -348,8 +348,7 @@ class Connection extends Component
} else {
$options[PDO::ATTR_PERSISTENT] = false;
}
$link = new PDO('mysql:dbname=' . $this->database . ';host=' . $this->cds,
$this->username, $this->password, $options);
$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);
}