Calling of UpdatesPending at DoBeforeClose causes Error
Posted: 12.02.2017, 17:09
Hello,
Calling of TZQuery.UpdatesPending at TZQuery.DoBeforeClose causes Error(listindex-error), here is the solution:
Calling of TZQuery.UpdatesPending at TZQuery.DoBeforeClose causes Error(listindex-error), here is the solution:
Code: Select all
ZDbcCachedResultSet.pas
function TZAbstractCachedResultSet.IsPendingUpdates: Boolean;
begin
Result := Assigned(FInitialRowsList) and (FInitialRowsList.Count > 0);
//Original: Result := FInitialRowsList.Count > 0;
//this can cause error if you Call TZQuery.UpdatesPending at DoBeforeClose;
//because FInitialRowsList can be nil if nothing inserted/deleted/modified
end;