Unverified Commit 88b80bf3 authored by Sergei Morozov's avatar Sergei Morozov Committed by GitHub

Merge pull request #3333 from odinsey/master

Allow windows (userless/passwordless) authentication for SQL Server
parents bef35e90 7cd248c3
......@@ -31,8 +31,13 @@ class Driver extends AbstractSQLServerDriver
$driverOptions['CharacterSet'] = $params['charset'];
}
$driverOptions['UID'] = $username;
$driverOptions['PWD'] = $password;
if ($username !== null) {
$driverOptions['UID'] = $username;
}
if ($password !== null) {
$driverOptions['PWD'] = $password;
}
if (! isset($driverOptions['ReturnDatesAsStrings'])) {
$driverOptions['ReturnDatesAsStrings'] = 1;
......
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