This bugtracker is archived (announcement). New tickets are created on github.com. See all framework issues, cms issues, and search the module listings for more specific bugtrackers.

Ticket #2476: MySQLDatabase.diff

File MySQLDatabase.diff, 721 bytes (added by Israel_Miranda, 4 years ago)

Diff file generated against SS 2.3.3

  • MySQLDatabase.php

     
    220220         */ 
    221221        public function checkAndRepairTable($tableName) { 
    222222                if(!$this->runTableCheckCommand("CHECK TABLE `$tableName`")) { 
     223                        if($this->runTableCheckCommand("CHECK TABLE `".strtolower($tableName)."`")){ 
     224                                Database::alteration_message("Table $tableName: repaired","repaired"); 
     225                        return $this->renameTable(strtolower($tableName),$tableName); 
     226                } 
    223227                        Database::alteration_message("Table $tableName: repaired","repaired"); 
    224228                        return $this->runTableCheckCommand("REPAIR TABLE `$tableName` USE_FRM"); 
    225229                } else {