B
bjaman
Unregistered / Unconfirmed
GUEST, unregistred user!
使用TClientDataSet作为内存表使用,在提交数据时这样用:
if (ClientDataSet1.ChangeCount > 0) then
ClientDataSet1.ApplyUpdates(-1);
然而出错了:
进程名 raise Exception class EDatabaseError with Message 'Record not found or Changed by another user',Process stopped,use Stop or Run to continue.
在线帮助中这样说:
Warning: The provider can't detect when an update conflicts with another user's changes to a memo field. The server will not detect and return these conflicts as errors.
而我频频出错的那行语句所指向的内存表中,恰恰有字段为Memo型.
事实上,我调试程序时是单机运行,且不曾手工打开过数据库.不存在其他用户改变了记录的情况.那么为什么还有上述错误出现呢? 又该如何解决呢?
if (ClientDataSet1.ChangeCount > 0) then
ClientDataSet1.ApplyUpdates(-1);
然而出错了:
进程名 raise Exception class EDatabaseError with Message 'Record not found or Changed by another user',Process stopped,use Stop or Run to continue.
在线帮助中这样说:
Warning: The provider can't detect when an update conflicts with another user's changes to a memo field. The server will not detect and return these conflicts as errors.
而我频频出错的那行语句所指向的内存表中,恰恰有字段为Memo型.
事实上,我调试程序时是单机运行,且不曾手工打开过数据库.不存在其他用户改变了记录的情况.那么为什么还有上述错误出现呢? 又该如何解决呢?