Skip to content

Settings and activity

1 result found

  1. 6 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Markus J. supported this idea  · 
    An error occurred while saving the comment
    Markus J. commented  · 

    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.

    An error occurred while saving the comment
    Markus J. commented  · 

    It seems you just need to override the virtual functions
    - TDataSet.PSInTransaction,
    - TDataSet.PSStartTransaction and
    - TDataSet.PSEndTransaction.

    Then the provider can handle it.