summaryrefslogtreecommitdiff
path: root/packages/fcl-db
diff options
context:
space:
mode:
authorblikblum <blikblum@3ad0048d-3df7-0310-abae-a5850022a9f2>2015-05-20 01:56:35 +0000
committerblikblum <blikblum@3ad0048d-3df7-0310-abae-a5850022a9f2>2015-05-20 01:56:35 +0000
commitd1291dbc9eeea017fc656193678bbfb101875e98 (patch)
tree6ee6c839b9d0727cee81506ff92d7db2dac3ae18 /packages/fcl-db
parent5c0a6465f17c99e4ee20041c1d8045eb633a5aa7 (diff)
downloadfpc-d1291dbc9eeea017fc656193678bbfb101875e98.tar.gz
* Don't fetch all records in detail dataset when master dataset is empty
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@30887 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/fcl-db')
-rw-r--r--packages/fcl-db/src/sqlite/customsqliteds.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/fcl-db/src/sqlite/customsqliteds.pas b/packages/fcl-db/src/sqlite/customsqliteds.pas
index 630f88491b..442d768056 100644
--- a/packages/fcl-db/src/sqlite/customsqliteds.pas
+++ b/packages/fcl-db/src/sqlite/customsqliteds.pas
@@ -1449,7 +1449,7 @@ var
AFilter: String;
i: Integer;
begin
- if not FMasterLink.Active or (FMasterLink.Dataset.RecordCount = 0) then //Retrieve all data
+ if not FMasterLink.Active then //Retrieve all data
FEffectiveSQL := FSqlFilterTemplate
else
begin