Commit 309e41dc authored by Francisco Facioni's avatar Francisco Facioni

Adds support for setting the charset in SQLSrv

As seen here => http://technet.microsoft.com/en-us/library/cc626307(v=sql.105).aspx
parent 501e3e86
......@@ -43,6 +43,10 @@ class Driver extends AbstractSQLServerDriver
if (isset($params['dbname'])) {
$driverOptions['Database'] = $params['dbname'];
}
if (isset($params['charset'])) {
$driverOptions['CharacterSet'] = $params['charset'];
}
$driverOptions['UID'] = $username;
$driverOptions['PWD'] = $password;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment