[Zope-Checkins] CVS: Products/DCOracle2 - SP.py:1.12.2.2
Chris Withers
cvs-admin at zope.org
Tue Nov 4 16:50:16 EST 2003
Update of /cvs-repository/Products/DCOracle2
In directory cvs.zope.org:/tmp/cvs-serv23347
Modified Files:
Tag: chrisw_fixconnectionleak_branch
SP.py
Log Message:
Calling stored procedures should not result in a ZODB write.
Thanks to Willi Langenberger for the patch.
=== Products/DCOracle2/SP.py 1.12.2.1 => 1.12.2.2 ===
--- Products/DCOracle2/SP.py:1.12.2.1 Tue Nov 4 16:47:45 2003
+++ Products/DCOracle2/SP.py Tue Nov 4 16:50:16 2003
@@ -137,14 +137,14 @@
db = self.getDB()
c = db.cursor() # Get cursor
- self._errors = 0
+ self._v_errors = 0
if self.procname:
try:
p = c.findproc(self.procname) # Get procedure
self._v_proc = p
except DCOracle2.DatabaseError:
- self._errors = self._errors + 1
- if self._errors > 3: raise
+ self._v_errors = self._v_errors + 1
+ if self._v_errors > 3: raise
def description(self):
More information about the Zope-Checkins
mailing list