eee
This commit is contained in:
+3
-3
@@ -372,9 +372,9 @@ class Connection extends Component
|
|||||||
];
|
];
|
||||||
|
|
||||||
// MySQL 特定的选项
|
// MySQL 特定的选项
|
||||||
if ($driver === 'mysql') {
|
// if ($driver === 'mysql') {
|
||||||
$options[\PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES ' . $this->charset;
|
// $options[\PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES ' . $this->charset;
|
||||||
}
|
// }
|
||||||
|
|
||||||
$pdo = new PDO($this->database, $this->cds, $this->username, $this->password, $options, $driver);
|
$pdo = new PDO($this->database, $this->cds, $this->username, $this->password, $options, $driver);
|
||||||
foreach ($this->attributes as $key => $attribute) {
|
foreach ($this->attributes as $key => $attribute) {
|
||||||
|
|||||||
Reference in New Issue
Block a user