[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/rdb/__init__.py
Don't assume database drivers accept a dictionary for their
bound parameters
Stuart Bishop
stuart at stuartbishop.net
Mon Sep 6 11:42:10 EDT 2004
Log message for revision 27452:
Don't assume database drivers accept a dictionary for their bound parameters
Changed:
U Zope3/trunk/src/zope/app/rdb/__init__.py
-=-
Modified: Zope3/trunk/src/zope/app/rdb/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/rdb/__init__.py 2004-09-05 14:45:57 UTC (rev 27451)
+++ Zope3/trunk/src/zope/app/rdb/__init__.py 2004-09-06 15:42:10 UTC (rev 27452)
@@ -247,9 +247,9 @@
if isinstance(operation, unicode):
operation = operation.encode('UTF-8')
+ self.connection.registerForTxn()
if parameters is None:
- parameters = {}
- self.connection.registerForTxn()
+ return self.cursor.execute(operation)
return self.cursor.execute(operation, parameters)
def __getattr__(self, key):
More information about the Zope3-Checkins
mailing list