81 |
|
FCursorSeq: integer; |
82 |
|
function GetFirebirdAPI: IFirebirdAPI; |
83 |
|
procedure SetOwner(AOwner: TTestApplication); |
84 |
+ |
{$if declared(TJnlEntry) } |
85 |
|
procedure HandleOnJnlEntry(JnlEntry: TJnlEntry); |
86 |
+ |
{$endif} |
87 |
|
protected |
88 |
|
FHexStrings: boolean; |
89 |
|
FShowBinaryBlob: boolean; |
99 |
|
procedure PrintSPB(SPB: ISPB); |
100 |
|
procedure PrintMetaData(meta: IMetaData); |
101 |
|
procedure ParamInfo(SQLParams: ISQLParams); |
102 |
+ |
{$if declared(TJnlEntry) } |
103 |
|
procedure PrintJournalFile(aFileName: AnsiString); |
104 |
|
procedure PrintJournalTable(Attachment: IAttachment); |
105 |
+ |
{$ifend} |
106 |
|
function ReportResults(Statement: IStatement; ShowCursorName: boolean=false): IResultSet; |
107 |
|
procedure ReportResult(aValue: IResults); |
108 |
|
function StringToHex(octetString: string; MaxLineLength: integer=0): string; |
390 |
|
FOwner := AOwner; |
391 |
|
end; |
392 |
|
|
393 |
+ |
{$if declared(TJnlEntry)} |
394 |
|
procedure TTestBase.HandleOnJnlEntry(JnlEntry: TJnlEntry); |
395 |
|
begin |
396 |
|
with JnlEntry do |
401 |
|
writeln(OutFile,'Journal Entry = ',JnlEntryType,'(', TJournalProcessor.JnlEntryText(JnlEntryType),')'); |
402 |
|
{$ENDIF} |
403 |
|
writeln(OutFIle,'Timestamp = ',FBFormatDateTime('yyyy/mm/dd hh:nn:ss.zzzz',Timestamp)); |
404 |
+ |
writeln(Outfile,'Attachment ID = ',AttachmentID); |
405 |
|
writeln(OutFile,'Session ID = ',SessionID); |
406 |
|
writeln(OutFile,'Transaction ID = ',TransactionID); |
407 |
|
case JnlEntry.JnlEntryType of |
428 |
|
end; |
429 |
|
writeln(OutFile); |
430 |
|
end; |
431 |
+ |
{$ifend} |
432 |
|
|
433 |
|
procedure TTestBase.DumpBCD(bcd: tBCD); |
434 |
|
var i,l: integer; |
609 |
|
end; |
610 |
|
end; |
611 |
|
|
612 |
+ |
{$if declared(TJnlEntry) } |
613 |
|
procedure TTestBase.PrintJournalFile(aFileName: AnsiString); |
614 |
|
begin |
615 |
|
writeln(OutFile,'Journal Entries'); |
632 |
|
Results.Fetchnext; |
633 |
|
end; |
634 |
|
end; |
635 |
+ |
{$ifend} |
636 |
|
|
637 |
|
function TTestBase.ReportResults(Statement: IStatement; ShowCursorName: boolean): IResultSet; |
638 |
|
begin |