MINOR Cleanup of MSSQLAzureDatabase::selectDatabase()

This commit is contained in:
Sean Harvey 2010-03-11 09:51:33 +00:00
parent fd47409602
commit 23b27e4d9f

View File

@ -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);
}
}