Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from coverslide/add-charset-param
Browse files Browse the repository at this point in the history
Specify charset for dblib dsn
  • Loading branch information
markcollister committed Nov 13, 2013
2 parents d759d27 + 53230b0 commit 5636ca2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Driver/PDODblib/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ private function _constructPdoDsn(array $params)
if (isset($params['dbname'])) {
$dsn .= 'dbname=' . $params['dbname'] . ';';
}
if (isset($params['charset'])) {
$dsn .= 'charset=' . $params['dbname'] . ';';
}

return $dsn;
}
Expand Down

0 comments on commit 5636ca2

Please sign in to comment.