MINOR Removed MSSQLDatabase::runTableCheckCommand() which is not used

This commit is contained in:
Sean Harvey 2010-05-26 09:58:40 +00:00
parent b484b14be5
commit b4851c5c1c

View File

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