From 074f61c31801a2df10d19503f9592d3bb37f44ed Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sun, 10 Feb 2019 13:09:16 +0100 Subject: [PATCH] Silence EOleError when checking field value for NULL: "Multiple-step operation generated errors. Check each status value.". Closes #496 --- source/dbconnection.pas | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index a7456705..8b6a9356 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -6468,8 +6468,15 @@ begin 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;