Hi folks,
When I build complex databases, I usually use a global connection object and leave it open. While in theory every time I begin a transaction, I also commit it or roll it back, errors happen. I want to test if the connection is in the midst of a transaction without rolling it back or committing it. There doesn't seem to be any kind of "is in transaction" property. Any ideas?
Thanks in advance.
-Brian
When I build complex databases, I usually use a global connection object and leave it open. While in theory every time I begin a transaction, I also commit it or roll it back, errors happen. I want to test if the connection is in the midst of a transaction without rolling it back or committing it. There doesn't seem to be any kind of "is in transaction" property. Any ideas?
Thanks in advance.
-Brian