Z
zhyan
Unregistered / Unconfirmed
GUEST, unregistred user!
有一主从表,提交主表正确,从表中有OnUpdateRecord事件,该事件中没有做任何处理,只有一行注释(//...... ),每次提交从表均提示错误信息:“Table is read only”,提交失败,若没有该事件,则主从表提交均正确。这是什么原因?
提交的语句如下:
database1.StartTransaction;
try
wwRecieved.ApplyUpdates;
wwRcvdDetail.ApplyUpdates;
Database1.Commit;
except
Database1.Rollback;
MessageDlg('数据提交失败,请重试!', mtInformation,[mbOk], 0);
raise;
end;
wwRecieved.CommitUpdates;
wwRcvdDetail.CommitUpdates;
环境如下:
Oracle 7.3 for NT + Delphi 4
提交的语句如下:
database1.StartTransaction;
try
wwRecieved.ApplyUpdates;
wwRcvdDetail.ApplyUpdates;
Database1.Commit;
except
Database1.Rollback;
MessageDlg('数据提交失败,请重试!', mtInformation,[mbOk], 0);
raise;
end;
wwRecieved.CommitUpdates;
wwRcvdDetail.CommitUpdates;
环境如下:
Oracle 7.3 for NT + Delphi 4