Browse Source

fcl-db: datadict: when querying for table indexes use ServerIndexDefs instead of local IndexDef

git-svn-id: trunk@33087 -
lacak 9 years ago
parent
commit
6ca424900b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/fcl-db/src/datadict/fpddsqldb.pp

+ 2 - 2
packages/fcl-db/src/datadict/fpddsqldb.pp

@@ -232,8 +232,8 @@ begin
     Q.SQL.text:=Format('SELECT * FROM %s WHERE (1=2)',[ATableName]);
     Q.SQL.text:=Format('SELECT * FROM %s WHERE (1=2)',[ATableName]);
     Q.ReadOnly:=False;
     Q.ReadOnly:=False;
     Q.Prepare;
     Q.Prepare;
-    Q.IndexDefs.Update;
-    IndexDefsToDDIndexDefs(Q.IndexDefs,Defs);
+    Q.ServerIndexDefs.Update;
+    IndexDefsToDDIndexDefs(Q.ServerIndexDefs,Defs);
     Result:=Defs.Count;
     Result:=Defs.Count;
   finally
   finally
     Q.Free;
     Q.Free;