This commit is contained in:
2026-07-07 11:28:53 +08:00
parent fe9d054be0
commit dce38ad64e
+3 -3
View File
@@ -372,9 +372,9 @@ class Connection extends Component
];
// MySQL 特定的选项
if ($driver === 'mysql') {
$options[\PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES ' . $this->charset;
}
// if ($driver === 'mysql') {
// $options[\PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES ' . $this->charset;
// }
$pdo = new PDO($this->database, $this->cds, $this->username, $this->password, $options, $driver);
foreach ($this->attributes as $key => $attribute) {