BUGFIX: Fixed MSSQLDatabase::dropDatabase()

This commit is contained in:
Sam Minnee 2009-06-16 02:13:00 +00:00
parent efb03701ca
commit acc2d7f531

View File

@ -240,8 +240,9 @@ class MSSQLDatabase extends Database {
* Use with caution.
*/
public function dropDatabase() {
$db = $this->database;
$this->selectDatabase('master');
$this->query("DROP DATABASE \"$this->database\"");
$this->query("DROP DATABASE \"$db\"");
$this->active = false;
}