mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-06 21:07:47 +02:00
* Fix from Wagner Landgraf: Lookup must return Null if not found
This commit is contained in:
parent
396bda65af
commit
ec3efe0ad5
@ -1839,8 +1839,7 @@ begin
|
||||
GetFieldList(L,ResultFields);
|
||||
Result:=inherited Lookup(KeyFields, KeyValues, ResultFields);
|
||||
RI:=LocateRecordIndex(KeyFields,KeyValues,[]);
|
||||
Result:=RI<>-1;
|
||||
if Result then
|
||||
if RI<>-1 then
|
||||
begin
|
||||
SetLength(Vals,L.Count);
|
||||
For I:=0 to L.Count-1 do
|
||||
|
Loading…
Reference in New Issue
Block a user