Поправил регистр

This commit is contained in:
origami11 2017-06-07 13:54:45 +03:00
parent 785da9007a
commit ebeb727717
3 changed files with 5 additions and 5 deletions

View file

@ -29,7 +29,7 @@ class Database extends PDO
{
if ($dsn['phptype'] == 'pgsql' || $dsn['phptype'] == 'mysql') {
$port = (isset($dsn['port'])) ? "port={$dsn['port']};" : "";
$port = (isset($dsn['port'])) ? "port={$dsn['port']};" : "";
/*.Database.*/$connection = new static("{$dsn['phptype']}:host={$dsn['hostspec']}; $port dbname={$dsn['database']}", $dsn['username'], $dsn['password']);
if ($dsn['phptype'] == 'pgsql') {
$connection->query('SET client_encoding="UTF-8"');