Esempio n. 1
0
 /**
  * @param string $statement
  * @throws DatabaseQueryException
  * @throws DatabaseMigratorException
  */
 protected function executeStatement($statement)
 {
     if (strlen($statement) > 3 && substr(ltrim($statement), 0, 2) != '/*') {
         try {
             $this->db->execute($statement);
         } catch (DatabaseQueryException $ex) {
             $this->db->execute('ROLLBACK;');
             throw $ex;
         }
     }
 }