Skip to content

Commit

Permalink
Merge pull request #13 from REZ1DENT3/patch-1
Browse files Browse the repository at this point in the history
Update Mysql.php
  • Loading branch information
dracony authored Mar 13, 2017
2 parents 4fb87aa + 4b22fc9 commit 4e96c3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PHPixie/Database/Driver/PDO/Adapter/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Mysql extends \PHPixie\Database\Driver\PDO\Adapter
{
public function preparePdo($pdo)
{
$pdo->exec("SET NAMES utf8");
$pdo->exec("SET NAMES " . $this->config->get('charset', 'utf8'));
}

public function listColumns($table)
Expand Down
2 changes: 1 addition & 1 deletion src/PHPixie/Database/Driver/PDO/Adapter/Pgsql.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Pgsql extends \PHPixie\Database\Driver\PDO\Adapter
{
public function preparePdo($pdo)
{
$pdo->exec("SET NAMES 'utf8'");
$pdo->exec("SET NAMES '" . $this->config->get('charset', 'utf8') . "'");
}

public function insertId()
Expand Down

0 comments on commit 4e96c3c

Please sign in to comment.