Author: jure
Date: Wed Feb 6 10:32:11 2013
New Revision: 1442889
URL: http://svn.apache.org/viewvc?rev=1442889&view=rev
Log:
#288, add cursor property to Bloodhound connection wrapper, patch
t288_r1441419_sql_translate_cursor.patch (from Olemis)
Modified:
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py
Modified:
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py
URL:
http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py?rev=1442889&r1=1442888&r2=1442889&view=diff
==============================================================================
---
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py
(original)
+++
incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/dbcursor.py
Wed Feb 6 10:32:11 2013
@@ -107,6 +107,10 @@ class BloodhoundConnectionWrapper(object
BloodhoundIterableCursor.set_env(self.env)
return self.connection.executemany(query, params=params)
+ def cursor(self):
+ BloodhoundIterableCursor.set_env(self.env)
+ return self.connection.cursor()
+
class ProductEnvContextManager(object):
"""Wrap an underlying database context manager so as to keep track
of (nested) product context.