mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API support dblib (#5996)
This commit is contained in:
parent
f25b88b146
commit
b87c668bf4
@ -123,6 +123,12 @@ class PDOConnector extends DBConnector {
|
||||
$server .= ",{$parameters['port']}";
|
||||
}
|
||||
$dsn[] = "Server=$server";
|
||||
} elseif ($parameters['driver'] === 'dblib') {
|
||||
$server = $parameters['server'];
|
||||
if (!empty($parameters['port'])) {
|
||||
$server .= ":{$parameters['port']}";
|
||||
}
|
||||
$dsn[] = "host={$server}";
|
||||
} else {
|
||||
if (!empty($parameters['server'])) {
|
||||
// Use Server instead of host for sqlsrv
|
||||
|
Loading…
Reference in New Issue
Block a user