Skip to content

Commit 7cf519a

Browse files
edwardstumpfEdward Stumpf
andauthored
Add support for SQL Server LoginTimeout connection option to specify seconds to wait before failing connection attempt. (#33472)
Co-authored-by: Edward Stumpf <[email protected]>
1 parent 8792f08 commit 7cf519a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Database/Connectors/SqlServerConnector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ protected function getSqlSrvDsn(array $config)
156156
$arguments['KeyStoreSecret'] = $config['key_store_secret'];
157157
}
158158

159+
if (isset($config['login_timeout'])) {
160+
$arguments['LoginTimeout'] = $config['login_timeout'];
161+
}
162+
159163
return $this->buildConnectString('sqlsrv', $arguments);
160164
}
161165

0 commit comments

Comments
 (0)