Construction of TDBTransaction
Original Reporter info from Mantis: havezet
-
Reporter name: Hert Vanz
Original Reporter info from Mantis: havezet
- Reporter name: Hert Vanz
Description:
In a quest to why I sometimes got an error "Transaction not registered" I found out that the FDatabase variable for a TBDTransaction is not initialized to nil.
Additional information:
Possible solution:
Replace:
constructor TDBTransaction.create(AOwner : TComponent);
begin
inherited create(AOwner);
FDatasets:=TList.Create;
end;
with:
constructor TDBTransaction.create(AOwner : TComponent);
begin
inherited create(AOwner);
FDatabase := nil; // added by havezet
FDatasets:=TList.Create;
end;
Mantis conversion info:
- Mantis ID: 20904
- Version: 2.5.1