ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/fbintf/testsuite/Test1.pas
(Generate patch)

Comparing ibx/trunk/fbintf/testsuite/Test1.pas (file contents):
Revision 117 by tony, Mon Jan 22 13:58:11 2018 UTC vs.
Revision 120 by tony, Mon Jan 22 13:58:20 2018 UTC

# Line 17 | Line 17 | unit Test1;
17   {$IFDEF FPC}
18   {$mode delphi}
19   {$codepage utf8}
20 + {$define HASREQEX}
21   {$ENDIF}
22  
23   interface
# Line 92 | Line 93 | begin
93    writeln(outfile,'DB ODS Minor Version = ',Attachment.GetODSMinorVersion);
94    PrintDPB(Attachment.getDPB);
95  
96 +  {$IFDEF HASREQEX}
97    {Demonstrate reconnect when database created with SQL Statement}
98 <  Attachment.Disconnect;
99 <  Attachment.Connect;
98 >  try
99 >    Attachment.Disconnect;
100 >    Attachment.Connect;
101 >  except on E:Exception do
102 >    writeln(OutFile,'Error reconnecting to Database: ',E.Message);
103 >  end;
104 >  {$ENDIF}
105  
106    writeln(OutFile,'Dropping Database');
107    if Attachment <> nil then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines