mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
MINOR Cleanup of MSSQLAzureDatabase::selectDatabase()
This commit is contained in:
parent
fd47409602
commit
23b27e4d9f
@ -63,12 +63,8 @@ class MSSQLAzureDatabase extends MSSQLDatabase {
|
||||
*/
|
||||
public function selectDatabase($dbname) {
|
||||
global $databaseConfig;
|
||||
$parameters = array();
|
||||
$parameters['database'] = $dbname;
|
||||
$parameters['server'] = $databaseConfig['server'];
|
||||
$parameters['username'] = $databaseConfig['username'];
|
||||
$parameters['password'] = $databaseConfig['password'];
|
||||
$this->connectDatabase($parameters);
|
||||
$databaseConfig['database'] = $dbname;
|
||||
$this->connectDatabase($databaseConfig);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user