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