Open yangqingrong opened 4 weeks ago
try { $this->pdo = new PDO($dsn, $config['username'], $config['password']); //I add this block to avoid exception if( !in_array($config['driver'],['sqlite'])){ $this->pdo->exec("SET NAMES '" . $config['charset'] . "' COLLATE '" . $config['collation'] . "'"); $this->pdo->exec("SET CHARACTER SET '" . $config['charset'] . "'"); } // ...
Thanks for the issue. I'll check it and plan to release new version that contain related fixes.