1,7 → 1,5 |
<?php |
|
namespace PointedEars\PHPX\Db; |
|
require_once __DIR__ . '/Database.php'; |
|
class MySQLDB extends Database |
51,7 → 49,7 |
public function __construct() |
{ |
$this->readConfig(); |
|
|
$this->_dsn = "mysql:host={$this->_host}" |
. (!is_null($this->_dbname) ? ";dbname={$this->_dbname}" : '') |
. (!is_null($this->_charset) ? ";charset={$this->_charset}" : ''); |
58,7 → 56,7 |
|
if (!is_null($this->_charset)) |
{ |
$this->_options[\PDO::MYSQL_ATTR_INIT_COMMAND] = "SET NAMES " . $this->_charset; |
$this->_options[PDO::MYSQL_ATTR_INIT_COMMAND] = "SET NAMES " . $this->_charset; |
} |
|
parent::__construct(); |