浏览代码

* Fix bug #33252

git-svn-id: trunk@38597 -
michael 7 年之前
父节点
当前提交
256ae133a2
共有 1 个文件被更改,包括 2 次插入1 次删除
  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
     begin
     B.InitialiseSpareRecord(IntAllocRecordBuffer);
-    BuildIndex(B);
+    if (F.Fields<>'') then
+      BuildIndex(B);
     end
   else
     if (FIndexes.Count+2>FMaxIndexesCount) then