Delete method not update UpdatesPending in MyQuery
Posted: Sat 25 Mar 2006 20:48
Hi !!!
I working with MyDac 4.3.10 and Delphi 5.
I call the "Delete" method of the MyQuery component into an Loop :
MyQuery.CachedUpdates := True;
MyQuery.Open;
MyQuery.First;
While not MyQuery.Eof Do
begin
MyQuery.Delete;
MyQuery.Next;
End;
After this loop, I try update the dataset into the Database :
If Not MyConnection.InTransaction Then
MyConnection.StartTransaction;
Try
If MyQuery.UpdatesPending Then <-- FALSE !!!
MyQuery.ApplyUpdates;
MyConnection.Commit;
Except
MyQuery.RestoreUpdates;
MyConnection.Rollback;
Raise;
End;
MyQuery.CommitUpdates;
Is that a bug ??? , Please, Help Me !!!
Thank you
I working with MyDac 4.3.10 and Delphi 5.
I call the "Delete" method of the MyQuery component into an Loop :
MyQuery.CachedUpdates := True;
MyQuery.Open;
MyQuery.First;
While not MyQuery.Eof Do
begin
MyQuery.Delete;
MyQuery.Next;
End;
After this loop, I try update the dataset into the Database :
If Not MyConnection.InTransaction Then
MyConnection.StartTransaction;
Try
If MyQuery.UpdatesPending Then <-- FALSE !!!
MyQuery.ApplyUpdates;
MyConnection.Commit;
Except
MyQuery.RestoreUpdates;
MyConnection.Rollback;
Raise;
End;
MyQuery.CommitUpdates;
Is that a bug ??? , Please, Help Me !!!
Thank you