Settings and activity
1 result found
-
6 votesMarkus J. supported this idea ·
An error occurred while saving the comment An error occurred while saving the comment Markus J. commentedIt seems you just need to override the virtual functions
- TDataSet.PSInTransaction,
- TDataSet.PSStartTransaction and
- TDataSet.PSEndTransaction.Then the provider can handle it.
Add the folowing line to the overriden TDataSet.InternalClose procedure:
if Assigned(Transaction) then
Transaction.CheckAutoStop; //<- New function: If TDataSet.Open did start the transaction then perform AutoStop action.