Browse Source

* Don't fetch all records in detail dataset when master dataset is empty

git-svn-id: trunk@30887 -
blikblum 10 years ago
parent
commit
6542cfe0ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/sqlite/customsqliteds.pas

+ 1 - 1
packages/fcl-db/src/sqlite/customsqliteds.pas

@@ -1449,7 +1449,7 @@ var
   AFilter: String;
   AFilter: String;
   i: Integer;
   i: Integer;
 begin
 begin
-  if not FMasterLink.Active or (FMasterLink.Dataset.RecordCount = 0) then //Retrieve all data
+  if not FMasterLink.Active then //Retrieve all data
     FEffectiveSQL := FSqlFilterTemplate
     FEffectiveSQL := FSqlFilterTemplate
   else
   else
   begin
   begin