* ajdust for bug #654.
This commit is contained in:
@@ -286,6 +286,7 @@ class installModel extends model
|
||||
$dbh->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
|
||||
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
$dbh->exec("SET NAMES {$this->config->db->encoding}");
|
||||
if(isset($this->config->db->strictMode) and $this->config->db->strictMode == false) $dbh->exec("SET @@sql_mode= ''");
|
||||
return $dbh;
|
||||
}
|
||||
catch (PDOException $exception)
|
||||
|
||||
Reference in New Issue
Block a user