mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-24 12:49:06 +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);
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user