[SQLObject] releaseConnection and Transactions
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Sidnei da S. <si...@pl...> - 2003-09-25 22:15:52
|
Howdy again, I've been having some trouble with the fact that releaseConnection does a rollback() if autoCommit is false and not 'exception' and supportTransactions is set to True. Namely, if in my application (Zope 3-based) I've set autoCommit to false because Zope takes care of commiting the transaction at the right time, but then it reaches this path and anything that I do gets rolled back. So, the solution for me was to set supportTransactions to False, which doesn't seem to affect anything, but feels icky anyway. Is there any special reason for the rollback() there? The line in question is 98 of DBConnection. []'s -- Sidnei da Silva <si...@pl...> dreamcatching :: making your dreams come true http://dreamcatcher.homeunix.org Simulations are like miniskirts, they show a lot and hide the essentials. -- Hubert Kirrman |