English 中文(简体)
BIGINT 未签名值为超出射程误差(错误编号: 1690)
原标题:BIGINT UNSIGNED value is out of range error (Error Number : 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);




相关问题
jQuery - ScrollTo and Serial Scroll not working together

I have tested the scrollTo() plugin, but I need a way to stop the scrolling animation, so I am looking at serialScroll(). Here is what I used with scrollTo: $( #scroller ).scrollTo( 1000px , 3000); ...

jQuery deconstructors for plugins?

I m using the Galleria plugin inside an Accordion plugin to display images in a super cool way. A problem occurs, however, when I open up a new tab (in the accordion) then come back to the gallery tab....

XPCOM Security issues

I m developing a Firefox plugin using XPCOM, I ve not yet read all the docs, but as far as I can see, A plugin is simply a DLL that provides services via a XPCOM interface and interacts with the ...

Ruby on Rails plugin development process

I m considering developing aspects of a website as Rails plugins for reuse. My question is about the development process. Since each of these plugins will provide a "slice" of functionality, should ...

help mongrel wont start

I have decided to switch from Restful authentication to authlogic.. so what I did was delete every file and folder that got installed when I downloaded the plugin.. now when I try to "ruby script/...

Basic MEF workflow/usage

I m looking to a framework which will allow me to have a simple plugin system in my .NET application. It seems MEF is the framework which Microsoft is endorsing, and will become part of .NET 4 (it ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

java plugin cache and dynamic IP host

I m trying to use Amazon S3 and Amazon Cloudfront CDN to deliver the jar files of my applet application. I m seeing several cache misses of my jars by the java plugin. This is a show-stopper for me, ...

热门标签