This commit is contained in:
2021-04-27 18:27:33 +08:00
parent 1caceead5d
commit 88a67ac021
2 changed files with 5 additions and 7 deletions
+4 -4
View File
@@ -159,10 +159,10 @@ class Connection extends Pool
$link->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);
$link->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_EMPTY_STRING);
$charset = $config['charset'] ?? 'utf8mb4';
if (!empty($charset)) {
$link->query('SET NAMES ' . $charset);
}
// $charset = $config['charset'] ?? 'utf8mb4';
// if (!empty($charset)) {
// $link->query('SET NAMES ' . $charset);
// }
// $this->printClients($config['cds'], '', '');
// $this->increment($name);