|
@ -78,7 +78,7 @@ class MySQLiDriver extends SqlDbDriver |
|
|
$port); |
|
|
$port); |
|
|
// Connection errors check
|
|
|
// Connection errors check
|
|
|
if (mysqli_connect_error()) { |
|
|
if (mysqli_connect_error()) { |
|
|
throw new GeneralException(mysqli_connect_error(), mysqli_connect_errno()); |
|
|
|
|
|
|
|
|
throw new \Majestic\Exception\GeneralException(mysqli_connect_error(), mysqli_connect_errno()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$charset = (!empty($this->config['charset'])) ? $this->config['charset'] : 'utf8'; |
|
|
$charset = (!empty($this->config['charset'])) ? $this->config['charset'] : 'utf8'; |
|
|