1. Rodrigo Rosa
  2. PowerBuilder
  3. Friday, 17 January 2020 15:04 PM UTC

Hi,

How i disconnect all transaction in a Userobject? The command "destroy" disconnect the transaction?

 

 

Thanks

Michael Kramer Accepted Answer Pending Moderation
  1. Friday, 17 January 2020 16:30 PM UTC
  2. PowerBuilder
  3. # 1

You need to execute the DISCONNECT. I often have below functionality + error handling in my transaction base class.

// of_Disconnect: Encapsulates embedded SQL
if this.DBHandle() = 0 then return // Already disconnected => DONE
DISCONNECT USING this;
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
// Destructor: Auto-disconnect if you want that safety
this.of_Disconnect()
Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.