ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/branches/udr/client/3.0/FB30Attachment.pas
(Generate patch)

Comparing ibx/branches/udr/client/3.0/FB30Attachment.pas (file contents):
Revision 389 by tony, Wed Jan 19 13:34:42 2022 UTC vs.
Revision 390 by tony, Sat Jan 22 16:15:12 2022 UTC

# Line 141 | Line 141 | begin
141   end;
142  
143   procedure TVersionCallback.callback(status: Firebird.IStatus; text: PAnsiChar);
144 < var StatusObj: TFB30StatusObject;
144 > var aStatus: IStatus;
145   begin
146 <  if ((status.getState and status.STATE_ERRORS) <> 0) then
147 <  begin
148 <    StatusObj := TFB30StatusObject.Create(FFirebirdClientAPI,status);
149 <    try
150 <      raise EIBInterBaseError.Create(StatusObj);
151 <    finally
152 <      StatusObj.Free;
153 <    end;
154 <  end;
146 >  aStatus := TFB30Status.Create(FFirebirdClientAPI,status);
147 >  if aStatus.InErrorState then
148 >      raise EIBInterBaseError.Create(aStatus);
149    FOutput.Add(text);
150   end;
151  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines