mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 00:29:33 +02:00
fcl-db: datadict: when querying for table indexes use ServerIndexDefs instead of local IndexDef
git-svn-id: trunk@33087 -
This commit is contained in:
parent
b38b441d53
commit
6ca424900b
@ -232,8 +232,8 @@ begin
|
||||
Q.SQL.text:=Format('SELECT * FROM %s WHERE (1=2)',[ATableName]);
|
||||
Q.ReadOnly:=False;
|
||||
Q.Prepare;
|
||||
Q.IndexDefs.Update;
|
||||
IndexDefsToDDIndexDefs(Q.IndexDefs,Defs);
|
||||
Q.ServerIndexDefs.Update;
|
||||
IndexDefsToDDIndexDefs(Q.ServerIndexDefs,Defs);
|
||||
Result:=Defs.Count;
|
||||
finally
|
||||
Q.Free;
|
||||
|
Loading…
Reference in New Issue
Block a user