示例#1
0
 public function deleteDeferredById($id)
 {
     $db = $this->_getDb();
     try {
         return $this->_getDb()->delete('xf_deferred', 'deferred_id = ' . $db->quote($id));
     } catch (Zend_Db_Exception $e) {
         if (XenForo_Db::inTransaction($db)) {
             throw $e;
         }
         // This error is likely a deadlock, probably from an insert overwriting.
         // Let this get picked up by another runner.
         return 0;
     }
 }