eee
This commit is contained in:
+3
-3
@@ -390,9 +390,9 @@ class Connection extends Component
|
||||
PDO::ATTR_TIMEOUT => $this->timeout,
|
||||
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES ' . $this->charset
|
||||
]);
|
||||
array_walk($this->attributes, function ($value, $key) use ($pdo) {
|
||||
$pdo->setAttribute($key, $value);
|
||||
});
|
||||
foreach ($this->attributes as $key => $attribute) {
|
||||
$pdo->setAttribute($key, $attribute);
|
||||
}
|
||||
return $pdo;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user