1,5 → 1,7 |
<?php |
|
namespace PointedEars\PHPX\Db; |
|
require_once __DIR__ . '/Database.php'; |
|
class MySQLDB extends Database |
49,7 → 51,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}" : ''); |
56,7 → 58,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(); |