Browse Source

* Fix bug #33252

git-svn-id: trunk@38597 -
michael 7 years ago
parent
commit
256ae133a2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/fcl-db/src/base/bufdataset.pas

+ 2 - 1
packages/fcl-db/src/base/bufdataset.pas

@@ -2237,7 +2237,8 @@ begin
   if Active then
   if Active then
     begin
     begin
     B.InitialiseSpareRecord(IntAllocRecordBuffer);
     B.InitialiseSpareRecord(IntAllocRecordBuffer);
-    BuildIndex(B);
+    if (F.Fields<>'') then
+      BuildIndex(B);
     end
     end
   else
   else
     if (FIndexes.Count+2>FMaxIndexesCount) then
     if (FIndexes.Count+2>FMaxIndexesCount) then