Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3 from fiahfy/spike
Browse files Browse the repository at this point in the history
Add charset config
  • Loading branch information
raztud committed May 20, 2014
2 parents 9418d0a + d41c911 commit 195c14b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Doctrine/DBAL/Driver/PDODblib/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ private function _constructPdoDsn(array $params) {
if (isset($params['dbname'])) {
$dsn .= ';dbname=' . $params['dbname'];
}

if (isset($params['charset'])) {
$dsn .= ';charset=' . $params['charset'];
}

return $dsn;
}

Expand Down

0 comments on commit 195c14b

Please sign in to comment.