[patch_rejected] cached updates can not be posted
Posted: 29.05.2007, 13:51
bug report: cached updates can not be posted
TZAbstractDataset.CommitUpdates method rolls updates back
[problem]
Just look what code does:
// ZAbstractDataset.pas
procedure TZAbstractDataset.CommitUpdates;
begin
CheckBrowseMode;
if CachedResultSet <> nil then
CachedResultSet.CancelUpdates;
end;
But it is supposed to commit, not roll back updates. So:
[suggested solution]
(scope)
======== [component\ZAbstractDataset.pas] ========
procedure TZAbstractDataset.CommitUpdates;
(origin)
{
CachedResultSet.CancelUpdates;
}
(change into)
{
CachedResultSet.PostUpdates;
}
[platform notes]
zeosdbo-6.6.1-beta
delphi7
TZAbstractDataset.CommitUpdates method rolls updates back
[problem]
Just look what code does:
// ZAbstractDataset.pas
procedure TZAbstractDataset.CommitUpdates;
begin
CheckBrowseMode;
if CachedResultSet <> nil then
CachedResultSet.CancelUpdates;
end;
But it is supposed to commit, not roll back updates. So:
[suggested solution]
(scope)
======== [component\ZAbstractDataset.pas] ========
procedure TZAbstractDataset.CommitUpdates;
(origin)
{
CachedResultSet.CancelUpdates;
}
(change into)
{
CachedResultSet.PostUpdates;
}
[platform notes]
zeosdbo-6.6.1-beta
delphi7