From acc2d7f53108bc2910597d0f32df34106f558521 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 16 Jun 2009 02:13:00 +0000 Subject: [PATCH] BUGFIX: Fixed MSSQLDatabase::dropDatabase() --- code/MSSQLDatabase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index fde9f6e..47deb9c 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -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; }