mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
BUGFIX: disabling database connection reuse. This resulted in fail if two parallel connections to the same server were estabilished, each using different database. Second MSSQLDatabase object would change the DB also for the first one, resulting in invalid queries afterwards.
This commit is contained in:
parent
fe67223740
commit
5eec769564
@ -73,7 +73,7 @@ class MSSQLDatabase extends Database {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($this->mssql) {
|
if($this->mssql) {
|
||||||
$this->dbConn = mssql_connect($parameters['server'], $parameters['username'], $parameters['password']);
|
$this->dbConn = mssql_connect($parameters['server'], $parameters['username'], $parameters['password'], true);
|
||||||
} else {
|
} else {
|
||||||
$this->dbConn = sqlsrv_connect($parameters['server'], array(
|
$this->dbConn = sqlsrv_connect($parameters['server'], array(
|
||||||
'UID' => $parameters['username'],
|
'UID' => $parameters['username'],
|
||||||
|
Loading…
Reference in New Issue
Block a user