Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2006-02-06 12:40:21 -0700 (Mon, 06 Feb 2006)
New Revision: 1578
Set and reset autocommit on the low-level connection.
--- SQLObject/trunk/sqlobject/dbconnection.py 2006-02-06 18:56:55 UTC (rev 1577)
+++ SQLObject/trunk/sqlobject/dbconnection.py 2006-02-06 19:40:21 UTC (rev 1578)
@@ -866,6 +866,8 @@
self._obsolete = True
+ if self._dbConnection.autoCommit:
+ self._dbConnection._setAutoCommit(self._connection, 1)
self._connection = None
@@ -876,6 +878,7 @@
assert self._obsolete, "You cannot begin a new transaction session without rolling back this one"
self._obsolete = False
self._connection = self._dbConnection.getConnection()
+ self._dbConnection._setAutoCommit(self._connection, 0)
Sign up for the SourceForge newsletter: