是这样的,第一次增加的时候没有问题,
第二次增加的时候(我用的是pfc_addrow()),只要按存盘按钮(parent.event pfc_save(),其实就是窗体的pfc_save()事件),就会出现错误提示(我看数据库了,没有内容,如果不保存,那么信增加的数据就不会被提交到数据库),虽然出现错误,但是结果可以被提交,这是什么原因呀?
出现的提示内容大概如下:
a database erro has occurred.
database error code:2627
database error message:
violation of primary key constraint 'pk_t_XXX'.Cannot insert duplicate key in object 'T_temp'
No changes made to database.
Insert into T_temp(……)values(……)