BIGINT 无符号值超出范围错误(错误号:1690)



当我尝试删除 vBulletin 4 中的线程时,我收到此错误。这不是 vBulletin 问题,因为它是附加组件修改。下面是我正在使用的代码。如果他们在线程帖子中有 15 个单词并且我删除了线程,即使删除了 15 个单词,我也会收到错误,将他们的字数设置回零,而不是负数。

$threadinfo = fetch_threadinfo($threadid); 
$postinfo = fetch_postinfo($threadinfo['firstpostid']); 
$userdm =& datamanager_init('User', $this->registry, ERRTYPE_SILENT); 
$userdm->set_existing($postinfo); 
$userdm->set('totalwords', 'totalwords - ' . str_word_count($postinfo['pagetext']), false); 
$userdm->save(); 
unset($userdm);

谁能告诉我我错过了什么?

$threadinfo = fetch_threadinfo($threadid); 
$postinfo = fetch_postinfo($threadinfo['firstpostid']); 
$userdm =& datamanager_init('User', $this->registry, ERRTYPE_SILENT); 
$userdm->set_existing($postinfo); 
$userdm->set('totalwords', 'totalwords' - . str_word_count($postinfo['pagetext']),   false); 
$userdm->save(); 
unset($userdm);

最新更新