From b4851c5c1cb24db42a60d45042a7491d68b0f77f Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 26 May 2010 09:58:40 +0000 Subject: [PATCH] MINOR Removed MSSQLDatabase::runTableCheckCommand() which is not used --- code/MSSQLDatabase.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index 290fce0..8335a1c 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -525,21 +525,6 @@ class MSSQLDatabase extends SS_Database { return true; } - /** - * Helper function used by checkAndRepairTable. - * @param string $sql Query to run. - * @return boolean Returns if the query returns a successful result. - */ - protected function runTableCheckCommand($sql) { - $testResults = $this->query($sql); - foreach($testResults as $testRecord) { - if(strtolower($testRecord['Msg_text']) != 'ok') { - return false; - } - } - return true; - } - public function createField($tableName, $fieldName, $fieldSpec) { $this->query("ALTER TABLE \"$tableName\" ADD \"$fieldName\" $fieldSpec"); }