85 |
|
FFirebird25ClientAPI: TFB25ClientAPI; |
86 |
|
protected |
87 |
|
function GetActivityIntf(att: IAttachment): IActivityMonitor; override; |
88 |
+ |
function GetTrInfo(ReqBuffer: PByte; ReqBufLen: integer): ITrInformation; override; |
89 |
|
procedure SetInterface(api: TFBClientAPI); override; |
90 |
|
public |
91 |
|
property Handle: TISC_TR_HANDLE read FHandle; |
112 |
|
Result := (att as TFB25Attachment); |
113 |
|
end; |
114 |
|
|
115 |
+ |
function TFB25Transaction.GetTrInfo(ReqBuffer: PByte; ReqBufLen: integer |
116 |
+ |
): ITrInformation; |
117 |
+ |
begin |
118 |
+ |
Result := TTrInformation.Create(FFirebird25ClientAPI); |
119 |
+ |
with FFirebird25ClientAPI, Result as TTrInformation do |
120 |
+ |
if isc_transaction_info(StatusVector, @(FHandle), ReqBufLen, ReqBuffer, |
121 |
+ |
getBufSize, Buffer) > 0 then |
122 |
+ |
IBDataBaseError; |
123 |
+ |
end; |
124 |
+ |
|
125 |
|
procedure TFB25Transaction.SetInterface(api: TFBClientAPI); |
126 |
|
begin |
127 |
|
inherited SetInterface(api); |