mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 07:09:29 +02:00
* find cannot be used on unsorted stringlist
git-svn-id: trunk@34101 -
This commit is contained in:
parent
f8cdabfadb
commit
cd840816a4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user