Changeset 841 for trunk/Packages/Common


Ignore:
Timestamp:
Dec 31, 2016, 12:19:25 AM (8 years ago)
Author:
chronos
Message:
  • Fixed: Use SQL transaction for updating network device online state.
Location:
trunk/Packages/Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/Database.php

    r838 r841  
    154154    }
    155155    $Values = substr($Values, 2);
    156     echo('UPDATE `'.$this->Prefix.$Table.'` SET '.$Values.' WHERE ('.$Condition.')');
     156    //echo('UPDATE `'.$this->Prefix.$Table.'` SET '.$Values.' WHERE ('.$Condition.')');
    157157    $this->query('UPDATE `'.$this->Prefix.$Table.'` SET '.$Values.' WHERE ('.$Condition.')');
    158158  }
  • trunk/Packages/Common/Setup.php

    r791 r841  
    415415  PRIMARY KEY (`Id`)
    416416) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;');
    417     $this->Database->query("INSERT INTO `'.$this->UpdateManager->VersionTable.'` (`Id`, `Revision`) VALUES
    418       (1, '.$DatabaseRevision.');");
     417    $this->Database->query("INSERT INTO `".$this->UpdateManager->VersionTable."` (`Id`, `Revision`) VALUES
     418      (1, ".$DatabaseRevision.");");
    419419    $this->Database->query("CREATE TABLE IF NOT EXISTS `Module` (
    420420  `Id` int(11) NOT NULL AUTO_INCREMENT,
Note: See TracChangeset for help on using the changeset viewer.