diff --git a/Connection.php b/Connection.php index 7bbe661..f35fa5d 100644 --- a/Connection.php +++ b/Connection.php @@ -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) {