* find cannot be used on unsorted stringlist

git-svn-id: trunk@34101 -
This commit is contained in:
michael 2016-07-12 15:04:06 +00:00
parent f8cdabfadb
commit cd840816a4

View File

@ -2181,12 +2181,12 @@ end;
procedure TTestFieldTypes.TestTableNames;
var TableList : TStringList;
i : integer;
begin
TableList := TStringList.Create;
try
TSQLDBConnector(DBConnector).Connection.GetTableNames(TableList);
AssertTrue(TableList.Find('fpdev',i));
AssertTrue(TableList.IndexOf('fpdev')<>-1);
finally
TableList.Free;
end;
@ -2216,7 +2216,7 @@ begin
FieldList := TStringList.Create;
try
TSQLDBConnector(DBConnector).Connection.GetFieldNames('fpdev',FieldList);
AssertTrue(FieldList.Find('id',i));
AssertTrue(FieldList.IndexOf('id')<>-1);
finally
FieldList.Free;
end;