* Fix from Wagner Landgraf: Lookup must return Null if not found

This commit is contained in:
michael 2020-05-13 12:29:37 +00:00
parent 396bda65af
commit ec3efe0ad5

View File

@ -1839,8 +1839,7 @@ begin
GetFieldList(L,ResultFields); GetFieldList(L,ResultFields);
Result:=inherited Lookup(KeyFields, KeyValues, ResultFields); Result:=inherited Lookup(KeyFields, KeyValues, ResultFields);
RI:=LocateRecordIndex(KeyFields,KeyValues,[]); RI:=LocateRecordIndex(KeyFields,KeyValues,[]);
Result:=RI<>-1; if RI<>-1 then
if Result then
begin begin
SetLength(Vals,L.Count); SetLength(Vals,L.Count);
For I:=0 to L.Count-1 do For I:=0 to L.Count-1 do