Permalink
Browse files

Silence EOleError when checking field value for NULL: "Multiple-step …

…operation generated errors. Check each status value.". Closes #496
  • Loading branch information...
ansgarbecker committed Feb 10, 2019
1 parent 768bc00 commit 074f61c31801a2df10d19503f9592d3bb37f44ed
Showing with 9 additions and 2 deletions.
  1. +9 −2 source/dbconnection.pas
@@ -6468,8 +6468,15 @@ function TAdoDBQuery.IsNull(Column: Integer): Boolean;
Result := False
else if FEditingPrepared and Assigned(FCurrentUpdateRow) then
Result := FCurrentUpdateRow[Column].NewIsNull
else
Result := FCurrentResults.Fields[Column].IsNull;
else begin
try
Result := FCurrentResults.Fields[Column].IsNull;
except
// Silence error: "Multiple-step operation generated errors. Check each status value."
// @see #496
on E:EOleException do;
end;
end;
end;


0 comments on commit 074f61c

Please sign in to comment.