8-23.txt

(0 KB) Pobierz
function commit() {
   $result = $this->conn->commit();

   if(DB::isError($result)) {
      throw new Exception($result->getMessage(), $result->getCode());
   }

   $this->conn->autoCommit(true);
   return true;
}

function abort(){
   $result = $this->conn->rollback();

   if(DB::isError($result)) {
      throw new Exception($result->getMessage(), $result->getCode());
   }

   return true;
}
Zgłoś jeśli naruszono regulamin