ソースを参照

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

michael 5 年 前
コミット
ec3efe0ad5
1 ファイル変更1 行追加2 行削除
  1. 1 2
      packages/fcl-db/jsondataset.pas

+ 1 - 2
packages/fcl-db/jsondataset.pas

@@ -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