mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 15:47:51 +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;
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user