Subject | catch deadlock and retry the post |
---|---|
Author | Stefano Campri |
Post date | 2003-06-13T16:48:10Z |
with reference to
www.ibobjects.com/docs/ti_AuditableSeries.ZIP
i'm asking if handling the TIB_Query.OnPostError in this way
************************************************************
procedure TfrmTest_Series.qryInv_HeaderPostError(DataSet : TIB_Dataset;
E : EIB_Error; var Action : TIB_DataAction);
begin
case (E as EIB_ISCError).SQLCODE of
// catch the deadlock
- 913 : begin
Action := dacRetry
end;
end;
************************************************************
could be a good solution
Any suggestion would be apprecciate
Thanks in advance,
Stefano Campri
www.ibobjects.com/docs/ti_AuditableSeries.ZIP
i'm asking if handling the TIB_Query.OnPostError in this way
************************************************************
procedure TfrmTest_Series.qryInv_HeaderPostError(DataSet : TIB_Dataset;
E : EIB_Error; var Action : TIB_DataAction);
begin
case (E as EIB_ISCError).SQLCODE of
// catch the deadlock
- 913 : begin
Action := dacRetry
end;
end;
************************************************************
could be a good solution
Any suggestion would be apprecciate
Thanks in advance,
Stefano Campri